Changeset 15563 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Evolutionary/ESGQAPSolution.cs
- Timestamp:
- 12/30/17 23:10:29 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Evolutionary/ESGQAPSolution.cs
r15562 r15563 21 21 22 22 using HeuristicLab.Common; 23 using HeuristicLab.Data; 23 24 using HeuristicLab.Encodings.IntegerVectorEncoding; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 28 29 29 30 [Storable] 30 private double sParam;31 internal DoubleValue sParam; 31 32 public double SParam { 32 get { return sParam ; }33 get { return sParam.Value; } 33 34 set { 34 if (sParam == value) return;35 sParam = value;35 if (sParam.Value == value) return; 36 sParam.Value = value; 36 37 OnPropertyChanged(nameof(SParam)); 37 38 } … … 42 43 protected ESGQAPSolution(ESGQAPSolution original, Cloner cloner) 43 44 : base(original, cloner) { 44 sParam = original.sParam;45 sParam = cloner.Clone(original.sParam); 45 46 } 46 47 public ESGQAPSolution(IntegerVector assignment, Evaluation eval, double sParam) 47 48 : base(assignment, eval) { 48 this.sParam = sParam;49 this.sParam = new DoubleValue(sParam); 49 50 } 50 51
Note: See TracChangeset
for help on using the changeset viewer.