Local Solver Quick Start Guide (Serial Three): Start the Mathematical Model

Local Solver Quick Start Guide (Serial Three): Start the Mathematical Model

----------------------------------------------------------------------

To solve this model, please call LocalSolver with the LSP file as a parameter . Then, the following tracking information will appear in your console:

localsolver/examples/optimal_bucket$ localsolver optimal_bucket.lsp
LocalSolver 9.5.20200409-Win64. All rights reserved.
Load .\optimal_bucket.lsp...
Run model...
Run param...
Run solver...
Model:  expressions = 26, decisions = 3, constraints = 1, objectives = 1
Param:  time limit = 2 sec, no iteration limit
[objective direction ]:     maximize
[  0 sec,       0 itr]:            0
[ optimality gap     ]:         100%
[  0 sec,   42898 itr]:      0.68709
[ optimality gap     ]:      < 0.01%
42898 iterations performed in 0 seconds
Optimal solution:
  obj    =      0.68709
  gap    =      < 0.01%
  bounds =     0.687189

If the time limit is not set, the search will continue until optimality is proven ("Best Solution" message) or until you force the optimizer to stop by pressing Ctrl + C. Tracking in the console starts with the key indicators of the model: the number of expressions, decisions, constraints, and goals.

 

After the search is complete, the total number of iterations and elapsed time will be displayed, as well as the status and value of the best solution found. State solution may be inconsistent ( Inconsistent ), feasible ( Infeasible ), feasible ( Feasible ) or Best ( Optimal ) . any question,

Please contact the localSolver authorized agent in China Wuxi Xunhe Information Technology Co., Ltd. staff for help. . . .

(The serialization of LOCAL SOLVER Quick Start Guide---to be continued)

 

Guess you like

Origin blog.csdn.net/qq_31243247/article/details/115005800