Changeset 7471 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3/GQAPAssignmentView.cs
- Timestamp:
- 02/15/12 19:24:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3/GQAPAssignmentView.cs
r7470 r7471 26 26 using System.Linq; 27 27 using System.Windows.Forms; 28 using HeuristicLab.Common.Resources; 28 29 using HeuristicLab.Core.Views; 30 using HeuristicLab.Data; 29 31 using HeuristicLab.Encodings.IntegerVectorEncoding; 30 32 using HeuristicLab.MainForm; … … 44 46 public GQAPAssignmentView() { 45 47 InitializeComponent(); 48 recalculateButton.Image = VSImageLibrary.Refresh; 46 49 } 47 50 … … 307 310 } 308 311 #endregion 312 313 private void recalculateButton_Click(object sender, EventArgs e) { 314 double fdq, iq, oc; 315 GQAPEvaluator.Evaluate(Content.Assignment, Content.Weights, 316 Content.Distances, Content.InstallationCosts, Content.Demands, 317 Content.Capacities, out fdq, out iq, out oc); 318 Content.FlowDistanceQuality = new DoubleValue(fdq); 319 Content.InstallationQuality = new DoubleValue(iq); 320 Content.OverbookedCapacity = new DoubleValue(oc); 321 Content.Quality = new DoubleValue( 322 GQAPEvaluator.GetCombinedQuality(fdq, iq, oc, 323 Content.TransportationCosts.Value, Content.OverbookedCapacityPenalty.Value)); 324 } 309 325 } 310 326 }
Note: See TracChangeset
for help on using the changeset viewer.