Changeset 16373 for branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/CoinOrSolver.cs
- Timestamp:
- 12/12/18 14:23:45 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/CoinOrSolver.cs
r16288 r16373 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Data;25 24 using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base; 26 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 33 32 34 33 public CoinOrSolver() { 35 programmingTypeParam.Value.ValueChanged += (sender, args) => { 36 if (((EnumValue<LinearProgrammingType>)sender).Value == LinearProgrammingType.LinearProgramming) { 37 incrementalityParam.Value = new BoolValue(true); 38 incrementalityParam.Value.ValueChanged += (s, a) => { 39 if (((BoolValue)s).Value) { 40 qualityUpdateIntervalParam.Value = new TimeSpanValue(qualityUpdateIntervalParam.Value.Value); 41 } else { 42 qualityUpdateIntervalParam.Value = (TimeSpanValue)qualityUpdateIntervalParam.Value.AsReadOnly(); 43 } 44 }; 45 } else { 46 incrementalityParam.Value = (BoolValue)new BoolValue().AsReadOnly(); 47 } 48 }; 34 Parameters.Remove(solverSpecificParametersParam); 49 35 } 50 36 … … 58 44 } 59 45 46 public override bool SupportsPause => false; 47 48 public override bool SupportsQualityUpdate => ProblemType == ProblemType.LinearProgramming; 49 50 public override bool SupportsStop => false; 51 60 52 protected override OptimizationProblemType OptimizationProblemType => 61 LinearProgrammingType == LinearProgrammingType.LinearProgramming62 ? OptimizationProblemType.C LP_LINEAR_PROGRAMMING63 : OptimizationProblemType.C BC_MIXED_INTEGER_PROGRAMMING;53 ProblemType == ProblemType.LinearProgramming 54 ? OptimizationProblemType.ClpLinearProgramming 55 : OptimizationProblemType.CbcMixedIntegerProgramming; 64 56 } 65 57 }
Note: See TracChangeset
for help on using the changeset viewer.