- Timestamp:
- 05/07/19 15:30:17 (5 years ago)
- Location:
- trunk
- Files:
-
- 4 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/FileBasedLinearProblemDefinition.cs
r16736 r16910 23 23 using System.IO; 24 24 using Google.OrTools.LinearSolver; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Common.Resources; … … 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.Parameters; 31 using HEAL.Attic;32 32 33 33 namespace HeuristicLab.ExactOptimization.LinearProgramming { … … 50 50 "Google OR-Tools Protocol Buffers Files (*.bin;*.prototxt)|*.bin;*.prototxt|" + 51 51 "All Files (*.*)|*.*"; 52 fileNameParam.Value. PathChanged += (o, e) => {52 fileNameParam.Value.StringValue.ValueChanged += (o, e) => { 53 53 if (File.Exists(FileName)) { 54 54 fileContent = File.ReadAllBytes(FileName); -
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.