Changes between Version 4 and Version 5 of Documentation/Reference/ExactOptimization
- Timestamp:
- 02/04/19 12:40:19 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/Reference/ExactOptimization
v4 v5 225 225 226 226 [[Image(ExactOptimization.png,100%)]] 227 228 === Using the API to solve LP/MILP models in HeuristicLab === 227 229 228 230 The `BuildModel` method is used to define your model using the linear solver wrapper of OR-Tools, the `Analyze` method is used to retrieve the solution values of your decision variables. The following C# Script shows the implementation of the 0-1 Knapsack Problem (class `KnapsackLinearModel`), which is quite similar to the [#KnapsackProblemKSP example script provided above], and the usage of this model (in the method `Main`) by solving it with all available solvers.