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

Last change on this file since 16234 was 16234, checked in by ddorfmei, 12 months ago

#2931:

  • updated plugin dependencies
  • added solver library name defaults to settings
File size: 1.2 KB
Line 
1using HeuristicLab.Core;
2using HeuristicLab.Data;
3using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base;
4using HeuristicLab.Parameters;
5using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
6
7namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers {
8
9  [Item("SCIP", "SCIP (http://scip.zib.de/) must be installed and licenced.")]
10  [StorableClass]
11  public class ScipSolver : ExternalSolver {
12
13    public ScipSolver() {
14      Parameters.Add(libraryNameParam = new FixedValueParameter<FileValue>(nameof(LibraryName),
15        new FileValue { FileDialogFilter = FileDialogFilter, Value = Properties.Settings.Default.ScipLibraryName }));
16      programmingTypeParam.Value =
17        (EnumValue<LinearProgrammingType>)new EnumValue<LinearProgrammingType>(LinearProgrammingType
18          .MixedIntegerProgramming).AsReadOnly();
19    }
20
21    public override bool SupportsPause => true;
22
23    public override bool SupportsStop => true;
24
25    protected override OptimizationProblemType OptimizationProblemType =>
26              OptimizationProblemType.SCIP_MIXED_INTEGER_PROGRAMMING;
27  }
28}
Note: See TracBrowser for help on using the repository browser.