Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/12 04:29:56 (12 years ago)
Author:
abeham
Message:

#1614: restructured architecture to allow for different evaluator with different penalty strategies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3/GQAPAssignmentView.cs

    r7593 r7970  
    315315    private void recalculateButton_Click(object sender, EventArgs e) {
    316316      double fdq, iq, oc;
    317       GQAPEvaluator.Evaluate(Content.Assignment, Content.Weights,
     317      Content.Evaluator.Evaluate(Content.Assignment, Content.Weights,
    318318        Content.Distances, Content.InstallationCosts, Content.Demands,
    319319        Content.Capacities, out fdq, out iq, out oc);
     
    322322      Content.OverbookedCapacity = new DoubleValue(oc);
    323323      Content.Quality = new DoubleValue(
    324         GQAPEvaluator.GetCombinedQuality(fdq, iq, oc,
    325         Content.TransportationCosts.Value, Content.OverbookedCapacityPenalty.Value));
     324        Content.Evaluator.GetFitness(fdq, iq, oc,
     325        Content.TransportationCosts.Value, Content.ExpectedRandomQuality.Value));
    326326    }
    327327  }
Note: See TracChangeset for help on using the changeset viewer.