- Timestamp:
- 01/15/15 14:30:14 (10 years ago)
- Location:
- branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/RealEncoding.cs
r11753 r11767 290 290 foreach (var shakingOperator in shakingOperators) { 291 291 shakingOperator.RealVectorParameter.ActualName = Name; 292 shakingOperator.BoundsParameter.ActualName = BoundsParameter.Name; 292 293 } 293 294 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Interfaces/IProblemDefinition.cs
r11753 r11767 20 20 #endregion 21 21 22 using System.Collections.Generic;23 22 using HeuristicLab.Core; 24 23 25 24 namespace HeuristicLab.Problems.Programmable { 26 25 public interface IProblemDefinition : INamedItem { 27 IEncoding Encoding { get; } 26 IEncoding Encoding { get; } 28 27 } 29 28 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/MultiObjectiveProgrammableProblem.cs
r11753 r11767 44 44 Operators.Add(Evaluator); 45 45 Operators.Add(new BestScopeSolutionAnalyzer()); 46 Operators.Add(new SingleObjectiveAnalyzer());46 Operators.Add(new MultiObjectiveAnalyzer()); 47 47 48 48 ParameterizeOperators(); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/MultiObjectiveScriptableProblem.cs
r11753 r11767 20 20 #endregion 21 21 22 using System .Collections.Generic;22 using System; 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; … … 48 48 : base(original, cloner) { 49 49 RegisterEvents(); 50 ProblemScript.Compile(); 50 try { 51 ProblemScript.Compile(); 52 } 53 catch (InvalidOperationException) { 54 //Compilation error 55 } 51 56 } 52 57 public override IDeepCloneable Clone(Cloner cloner) { return new MultiObjectiveScriptableProblem(this, cloner); } … … 65 70 private void AfterDeserialization() { 66 71 RegisterEvents(); 67 ProblemScript.Compile(); 72 try { 73 ProblemScript.Compile(); 74 } 75 catch (InvalidOperationException) { 76 //Compilation error 77 } 68 78 } 69 79 -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/Scripts/ProblemDefinitionScript.cs
r11753 r11767 59 59 protected IProblemDefinition CompiledProblemDefinition { 60 60 get { 61 //lock (locker) {62 // if (compiledProblemDefinition == null) {63 // Compile();64 // }65 //}66 61 if (compiledProblemDefinition == null) throw new InvalidOperationException("The problem definition script is not compiled and cannot be used."); 67 62 return compiledProblemDefinition; -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/Scripts/Templates/CompiledMultiObjectiveProblemDefinition.cs
r11753 r11767 1 using HeuristicLab.Core; 1 using System; 2 using System.Linq; 3 using System.Collections.Generic; 4 using HeuristicLab.Common; 5 using HeuristicLab.Core; 6 using HeuristicLab.Data; 7 using HeuristicLab.Encodings.PermutationEncoding; 2 8 using HeuristicLab.Optimization; 9 using HeuristicLab.Problems.Programmable; 3 10 4 11 namespace HeuristicLab.Problems.Programmable { -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/SingleObjectiveScriptableProblem.cs
r11753 r11767 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 using System.Linq;24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; … … 49 49 : base(original, cloner) { 50 50 RegisterEvents(); 51 ProblemScript.Compile(); 51 try { 52 ProblemScript.Compile(); 53 } 54 catch (InvalidOperationException) { 55 //Compilation error 56 } 52 57 } 53 58 public override IDeepCloneable Clone(Cloner cloner) { return new SingleObjectiveScriptableProblem(this, cloner); } … … 68 73 private void AfterDeserialization() { 69 74 RegisterEvents(); 70 ProblemScript.Compile(); 75 try { 76 ProblemScript.Compile(); 77 } 78 catch (InvalidOperationException) { 79 //Compilation error 80 } 71 81 } 72 82 -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/MultiEncodingOperator.cs
r11753 r11767 30 30 31 31 namespace HeuristicLab.Problems.Programmable.Operators { 32 [StorableClass] 32 33 public abstract class MultiEncodingOperator<T> : Operator, IMultiEncodingOperator where T : class,IOperator { 33 34 private List<IEncoding> encodings = new List<IEncoding>();
Note: See TracChangeset
for help on using the changeset viewer.