Changeset 16233 for branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Templates/CompiledLinearProgrammingProblemDefinition.cs
- Timestamp:
- 10/17/18 17:51:26 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Templates/CompiledLinearProgrammingProblemDefinition.cs
r16172 r16233 6 6 7 7 namespace HeuristicLab.MathematicalOptimization.LinearProgramming { 8 8 9 public class CompiledLinearProgrammingProblemDefinition : CompiledProblemDefinition, ILinearProgrammingProblemDefinition { 9 10 10 private Variable x; 11 11 private Variable y; … … 18 18 public void BuildModel(Solver solver) { 19 19 // Use vars.yourVariable to access variables in the variable store i.e. yourVariable 20 // Example model taken from https://developers.google.com/optimization/mip/integer_opt 20 // Example model taken from https://developers.google.com/optimization/mip/integer_opt 21 21 // Define the decision variables 22 22 x = solver.MakeIntVar(0, 3.5, "x");
Note: See TracChangeset
for help on using the changeset viewer.