Changeset 16582 for branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/ScipSolver.cs
- Timestamp:
- 01/29/19 17:45:06 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/ScipSolver.cs
r16405 r16582 22 22 using System; 23 23 using System.Threading; 24 using Google.OrTools.LinearSolver; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 31 31 namespace HeuristicLab. MathematicalOptimization.LinearProgramming {32 namespace HeuristicLab.ExactOptimization.LinearProgramming { 32 33 33 34 [Item("SCIP", "SCIP (http://scip.zib.de/) must be installed and licenced.")] … … 43 44 SolverSpecificParameters = 44 45 "# for file format and parameters, see https://scip.zib.de/doc/html/PARAMETERS.php" + Environment.NewLine + 45 "# example:" + Environment.NewLine + 46 "# branching/random/seed = 10" + Environment.NewLine; 46 "# examples:" + Environment.NewLine + 47 "# branching/random/seed = 10" + Environment.NewLine + 48 "# lp/initalgorithm = b # Barrier (root node of MIP)" + Environment.NewLine + 49 "# lp/resolvealgorithm = b # Barrier (MIP)" + Environment.NewLine; 47 50 } 48 51 … … 56 59 } 57 60 61 protected override Solver.OptimizationProblemType OptimizationProblemType => 62 Solver.OptimizationProblemType.ScipMixedIntegerProgramming; 63 58 64 protected override TimeSpan IntermediateTimeLimit => timeLimit += QualityUpdateInterval; 59 65 60 protected override OptimizationProblemType OptimizationProblemType => 61 OptimizationProblemType.ScipMixedIntegerProgramming; 66 public override IDeepCloneable Clone(Cloner cloner) => new ScipSolver(this, cloner); 62 67 63 public override void Solve(ILinearPro grammingProblemDefinition problemDefintion, ref TimeSpan executionTime, ResultCollection results, CancellationToken cancellationToken) {68 public override void Solve(ILinearProblemDefinition problemDefintion, ResultCollection results, CancellationToken cancellationToken) { 64 69 timeLimit = TimeSpan.Zero; 65 base.Solve(problemDefintion, re f executionTime, results, cancellationToken);70 base.Solve(problemDefintion, results, cancellationToken); 66 71 } 67 72 }
Note: See TracChangeset
for help on using the changeset viewer.