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.
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.
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.
Keep the generated number for the next step.
Submit your request
Paste the hardware signature generated at the previous step in the form.
Submit.
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).
Once you're approved, Go to LocalSolver: Account > Connection.
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
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
Uninstall LocalSolver
You must have root privileges on your computer to uninstall LocalSolver.
Then, uninstall LocalSolver in 2 steps:
- Open a terminal as root and navigate to /opt/localsolver_XXX/
- Execute the following command line: sudo bash uninstall.sh
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
Monitoring & Optimizing Lightning Routes to Fuel Bitcoin Liquidity
5 年Full article is available at?https://www.dhirubhai.net/pulse/localsolver-setup-download-install-license-macos-chew-/ #localsolver?