Changeset 16910 for trunk/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Problems/LinearProblem.cs
- Timestamp:
- 05/07/19 15:30:17 (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/HeuristicLab.ExactOptimization/3.3
- Property svn:ignore
-
old new 12 12 *.nuget.props 13 13 *.nuget.targets 14 Plugin.cs
-
- Property svn:ignore
-
trunk/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Problems/LinearProblem.cs
r16736 r16910 26 26 using System.Reflection; 27 27 using Google.OrTools.LinearSolver; 28 using HEAL.Attic; 28 29 using HeuristicLab.Common; 29 30 using HeuristicLab.Core; … … 31 32 using HeuristicLab.Optimization; 32 33 using HeuristicLab.Parameters; 33 using HEAL.Attic;34 34 35 35 namespace HeuristicLab.ExactOptimization.LinearProgramming { … … 44 44 public LinearProblem() { 45 45 Parameters.Remove(Parameters["Operators"]); 46 Parameters.Add(problemDefinitionParam = new ValueParameter<ILinearProblemDefinition>("Model", 47 new ProgrammableLinearProblemDefinition() , false));46 Parameters.Add(problemDefinitionParam = new ValueParameter<ILinearProblemDefinition>("Model", "The linear programming problem", 47 new ProgrammableLinearProblemDefinition()) { GetsCollected = false }); 48 48 } 49 49 … … 137 137 138 138 if (!exportSuccessful) 139 throw new InvalidDataException("Model could not be exported."); 139 throw new InvalidOperationException($"Model could not be exported. " + 140 $"For details, see the log files in '{LinearSolver.LogDirectory}'."); 140 141 } 141 142
Note: See TracChangeset
for help on using the changeset viewer.