Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/GlopSolver.cs @ 16233

Last change on this file since 16233 was 16233, checked in by ddorfmei, 6 years ago

#2931:

  • added all available parameters OR-Tools's linear_solver to LinearProgrammingAlgorithm
    • added necessary parameter enums
  • moved solving logic to Solver
    • created IncrementalSolver, ExternalSolver, ExternalIncrementalSolver
    • added logic for solvers that can be stopped and resumed
  • added SupportsStop property to BasicAlgorithm
  • added quality per time chart for incremental solvers
File size: 854 bytes
Line 
1using HeuristicLab.Core;
2using HeuristicLab.Data;
3using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base;
4using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5
6namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers {
7
8  [Item("Glop", "Glop (https://developers.google.com/optimization/lp/glop) can be used out of the box.")]
9  [StorableClass]
10  public class GlopSolver : IncrementalSolver {
11
12    public GlopSolver() {
13      programmingTypeParam.Value = (EnumValue<LinearProgrammingType>)programmingTypeParam.Value.AsReadOnly();
14    }
15
16    public override OptimizationProblemType OptimizationProblemType => OptimizationProblemType.GLOP_LINEAR_PROGRAMMING;
17    public override bool SupportsPause => true;
18    public override bool SupportsStop => true;
19  }
20}
Note: See TracBrowser for help on using the repository browser.