Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/12/18 14:23:45 (5 years ago)
Author:
ddorfmei
Message:

#2931:

  • upgraded Google OR-Tools to version 6.10
  • added TextValue and TextValueView to be able to display and edit a multiline string
  • added parameter to set solver specific parameters for supported solvers
  • added support for the Protocol Buffers representation of models (import/export)
  • added import of MPS models
  • added pause/stop functionality to CplexSolver and GlpkSolver
  • refactored wrapper (LinearSolver and related enums)
  • added new algorithm category Exact for LinearProgrammingAlgorithm
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Templates/CompiledLinearProgrammingProblemDefinition.cs

    r16288 r16373  
    1616    private Variable x;
    1717    private Variable y;
    18    
     18
    1919    public override void Initialize() {
    2020      // Use vars.yourVariable to access variables in the variable store i.e. yourVariable
    2121      // Add additional initialization code e.g. private variables that you need for evaluating
    2222    }
    23    
    24     public void BuildModel(Solver solver) {
     23
     24    public bool BuildModel(Solver solver) {
    2525      // Use vars.yourVariable to access variables in the variable store i.e. yourVariable
    2626      // Example model taken from https://developers.google.com/optimization/mip/integer_opt
     
    3232      // Define the objective
    3333      solver.Maximize(x + 10 * y);
     34      return true;
    3435    }
    35    
     36
    3637    public void Analyze(Solver solver, ResultCollection results) {
    3738      // Use vars.yourVariable to access variables in the variable store i.e. yourVariable
     
    4344      //results.AddOrUpdateResult("y", new DoubleValue(solver.LookupVariableOrNull("y").SolutionValue()));
    4445    }
    45    
     46
    4647    // Implement further classes and methods
    4748  }
Note: See TracChangeset for help on using the changeset viewer.