LocalSolver Setup: Download, Install & License (MacOS)

LocalSolver Setup: Download, Install & License (MacOS)

Installation on Mac OS X

System requirements

  • Architecture: x64.
  • Operating systems: Mavericks (Mac OS X 10.9 or superior)

Download LocalSolver for MacOS

Go to LocalSolver: Solver > Download.

No alt text provided for this image

Download LocalSolver for Mac OS X.

Launch LocalSolver_XXXX.pkg.

“LocalSolver_XXXX.pkg” can’t be opened because it is from an unidentified developer.

Open System Preferences... > Security & Privacy

Click Open Anyway near “LocalSolver_XXXX.pkg” was blocked section.

No alt text provided for this image

Follow the given instructions and LocalSolver will be installed.


Get a Free Trial License

Go to LocalSolver: Account > Registration.

Register and request a free trial license (or a free academic license for faculty and students).

Generate your hardware signature

Run the lskeygen tool from the bin folder of localsolver.

Open a terminal as root and navigate to /opt/localsolver_XXX/bin/

Execute the following command line:

lskeygen

This tool takes a hardware signature of your computer and generates a unique id.

No alt text provided for this image

Keep the generated number for the next step.

Submit your request

No alt text provided for this image

Paste the hardware signature generated at the previous step in the form.

Submit.

No alt text provided for this image

Wait.

As licenses are manually delivered by a member of the LocalSolver team, the whole procedure can take a few days to complete (usually 1 day).
No alt text provided for this image

Once you're approved, Go to LocalSolver: Account > Connection.

No alt text provided for this image
No alt text provided for this image

Download your license file.

Put the correct license file license.dat in the installation folder of LocalSolver, i.e. /opt/localsolver_XXX/.

You could also create your own license.dat file through terminal.

Simply copy/paste the line below in a new file and save it in the right file name under right folder.

You must have root privileges on your computer to do this.

 sudo nano license.dat
No alt text provided for this image


Testing

Open a terminal in folder /opt/localsolver_XXX/ and enter the following line:

 $ localsolver examples/toy/toy.lsp lsTimeLimit=1

If no error occurs, you are ready to use LocalSolver and solve your first model.

 Kais-MacBook:localsolver_9_0 kafechew$ localsolver examples/toy/toy.lsp lsTimeLimit=1
 LocalSolver 9.0.20191219-MacOS64. All rights reserved.
 Load examples/toy/toy.lsp...
 Run model...
 Preprocess model 100% ...
 Run param...
 Run solver...
 Initialize solver 100% ...
 Push initial solutions 100% ...
  
 Model: expressions = 38, decisions = 8, constraints = 1, objectives = 1
 Param: time limit = 10 sec, no iteration limit
  
 [ optimization direction ]    maximize
  
 [ 0 sec,   0 itr]: obj =     0
 [ 0 sec, 2789 itr]: obj =    280
  
 2789 iterations performed in 0 seconds
  
 Optimal solution:
  obj =    280
  gap =     0%
  bounds =    280
No alt text provided for this image


Uninstall LocalSolver

You must have root privileges on your computer to uninstall LocalSolver.

Then, uninstall LocalSolver in 2 steps:

  1. Open a terminal as root and navigate to /opt/localsolver_XXX/
  2. Execute the following command line: sudo bash uninstall.sh
No alt text provided for this image

Reference: LocalSolver: Docs > Installation & licensing > Installation on Mac OS X






Based on tree-search (TS) techniques, MIP are designed for?proving optimality & unsatisfiability, not for?finding feasible solutions. However, in real world, clients have optimisation problems, and rarely satisfaction problems. They want?good-quality solutions in a reasonable time.? Optimiser.com

Kai Feng Chew

Monitoring & Optimizing Lightning Routes to Fuel Bitcoin Liquidity

5 年

要查看或添加评论,请登录

Kai Feng Chew的更多文章

社区洞察

其他会员也浏览了