Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/17 17:42:27 (8 years ago)
Author:
jkarder
Message:

#2205: worked on optimization networks

  • added lrp networks (4, 5)
  • fixed lrp evaluation
  • updated flp models
  • updated to cplex 12.7
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.LocationRouting/3.3/LrpUtils.cs

    r14649 r14895  
    167167
    168168    public static double Evaluate(FacilityLocationSolution flpSolution, VRPSolution[] vrpSolutions) {
    169       return flpSolution.TotalOpeningCostsParameter.Value.Value + vrpSolutions.Sum(x => x.Quality.Value);
     169      if (flpSolution.TotalOverbookedCapacityParameter.Value.Value > 0.0)
     170        return flpSolution.FitnessValueParameter.Value.Value + vrpSolutions.Sum(x => x.Quality.Value);
     171      else
     172        return flpSolution.TotalOpeningCostsParameter.Value.Value + vrpSolutions.Sum(x => x.Quality.Value);
    170173    }
    171174  }
Note: See TracChangeset for help on using the changeset viewer.