- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/VRPSolution.cs
r12012 r13656 21 21 22 22 using System; 23 using System.Drawing;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; … … 35 34 [StorableClass] 36 35 public sealed class VRPSolution : Item { 37 public static new Image StaticItemImage { 38 get { return HeuristicLab.Common.Resources.VSImageLibrary.Image; } 39 } 36 40 37 41 38 [Storable] 42 39 private IVRPProblemInstance problemInstance; 43 public IVRPProblemInstance ProblemInstance { 40 public IVRPProblemInstance ProblemInstance 41 { 44 42 get { return problemInstance; } 45 set { 43 set 44 { 46 45 if (problemInstance != value) { 47 46 if (problemInstance != null) DeregisterProblemInstanceEvents(); … … 54 53 [Storable] 55 54 private IVRPEncoding solution; 56 public IVRPEncoding Solution { 55 public IVRPEncoding Solution 56 { 57 57 get { return solution; } 58 set { 58 set 59 { 59 60 if (solution != value) { 60 61 if (solution != null) DeregisterSolutionEvents(); … … 67 68 [Storable] 68 69 private DoubleValue quality; 69 public DoubleValue Quality { 70 public DoubleValue Quality 71 { 70 72 get { return quality; } 71 set { 73 set 74 { 72 75 if (quality != value) { 73 76 if (quality != null) DeregisterQualityEvents(); -
branches/WebJobManager/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/TourEncoding.cs
r12012 r13656 21 21 22 22 using System.Collections.Generic; 23 using System.Drawing;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; … … 31 30 [StorableClass] 32 31 public abstract class TourEncoding : Item, IVRPEncoding { 33 public static new Image StaticItemImage { 34 get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; } 35 } 32 36 33 37 34 #region IVRPEncoding Members … … 79 76 } 80 77 81 public int Cities { 82 get { 78 public int Cities 79 { 80 get 81 { 83 82 int cities = 0; 84 83 -
branches/WebJobManager/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs
r13173 r13656 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Drawing;25 24 using System.Linq; 26 25 using HeuristicLab.Analysis; … … 47 46 public string Filename { get; set; } 48 47 49 public static new Image StaticItemImage { 50 get { return HeuristicLab.Common.Resources.VSImageLibrary.Type; } 51 } 48 52 49 53 50 #region Parameter Properties 54 public ValueParameter<BoolValue> MaximizationParameter { 51 public ValueParameter<BoolValue> MaximizationParameter 52 { 55 53 get { return (ValueParameter<BoolValue>)Parameters["Maximization"]; } 56 54 } 57 IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter { 55 IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter 56 { 58 57 get { return MaximizationParameter; } 59 58 } 60 public ValueParameter<IVRPProblemInstance> ProblemInstanceParameter { 59 public ValueParameter<IVRPProblemInstance> ProblemInstanceParameter 60 { 61 61 get { return (ValueParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; } 62 62 } 63 public OptionalValueParameter<DoubleValue> BestKnownQualityParameter { 63 public OptionalValueParameter<DoubleValue> BestKnownQualityParameter 64 { 64 65 get { return (OptionalValueParameter<DoubleValue>)Parameters["BestKnownQuality"]; } 65 66 } 66 IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter { 67 IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter 68 { 67 69 get { return BestKnownQualityParameter; } 68 70 } 69 public OptionalValueParameter<VRPSolution> BestKnownSolutionParameter { 71 public OptionalValueParameter<VRPSolution> BestKnownSolutionParameter 72 { 70 73 get { return (OptionalValueParameter<VRPSolution>)Parameters["BestKnownSolution"]; } 71 74 } 72 public IConstrainedValueParameter<IVRPCreator> SolutionCreatorParameter { 75 public IConstrainedValueParameter<IVRPCreator> SolutionCreatorParameter 76 { 73 77 get { return (IConstrainedValueParameter<IVRPCreator>)Parameters["SolutionCreator"]; } 74 78 } 75 IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter { 79 IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter 80 { 76 81 get { return SolutionCreatorParameter; } 77 82 } 78 public IValueParameter<IVRPEvaluator> EvaluatorParameter { 83 public IValueParameter<IVRPEvaluator> EvaluatorParameter 84 { 79 85 get { return (IValueParameter<IVRPEvaluator>)Parameters["Evaluator"]; } 80 86 } 81 IParameter IHeuristicOptimizationProblem.EvaluatorParameter { 87 IParameter IHeuristicOptimizationProblem.EvaluatorParameter 88 { 82 89 get { return EvaluatorParameter; } 83 90 } … … 85 92 86 93 #region Properties 87 public IVRPProblemInstance ProblemInstance { 94 public IVRPProblemInstance ProblemInstance 95 { 88 96 get { return ProblemInstanceParameter.Value; } 89 97 set { ProblemInstanceParameter.Value = value; } 90 98 } 91 99 92 public VRPSolution BestKnownSolution { 100 public VRPSolution BestKnownSolution 101 { 93 102 get { return BestKnownSolutionParameter.Value; } 94 103 set { BestKnownSolutionParameter.Value = value; } 95 104 } 96 105 97 public DoubleValue BestKnownQuality { 106 public DoubleValue BestKnownQuality 107 { 98 108 get { return BestKnownQualityParameter.Value; } 99 109 set { BestKnownQualityParameter.Value = value; } 100 110 } 101 111 102 public ISingleObjectiveEvaluator Evaluator { 112 public ISingleObjectiveEvaluator Evaluator 113 { 103 114 get { return EvaluatorParameter.Value; } 104 115 } 105 116 106 IEvaluator IHeuristicOptimizationProblem.Evaluator { 117 IEvaluator IHeuristicOptimizationProblem.Evaluator 118 { 107 119 get { return this.Evaluator; } 108 120 } 109 121 110 ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator { 122 ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator 123 { 111 124 get { return SolutionCreatorParameter.Value; } 112 125 } 113 public IVRPCreator SolutionCreator { 126 public IVRPCreator SolutionCreator 127 { 114 128 get { return SolutionCreatorParameter.Value; } 115 129 set { SolutionCreatorParameter.Value = value; } … … 176 190 177 191 [Storable(Name = "operators", AllowOneWay = true)] 178 private List<IOperator> StorableOperators { 192 private List<IOperator> StorableOperators 193 { 179 194 set { Operators.AddRange(value); } 180 195 }
Note: See TracChangeset
for help on using the changeset viewer.