Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  IloRestoreSolution

    Posted 12/27/08 11:39 PM

    Originally posted by: SystemAdmin


    [anahana said:]

    I am using Guided Local Search to improve an initial routing plan (that is generated using IloNearestAdditionGenerate). Once the routing plan is improved I use the IloInsertVisit to add new visits to the initial routing plan; however, I noticed that the “_solution” argument that is passed to the IloInsertVisit is not the routing plan improved by Guided Local Search, it is the same initial plan, which means that the new visits are not added to the improved solution, but rather to the initial one.



    Now, I already used IloRestoreSolution in the Guided Local Search improve phase (see below, where “best” is an instance of IloRoutingSolution storing the best solution found so far):



    IloGoal restoreSolution = IloRestoreSolution(_env, best) && _instantiateCost && _instantiateTransitTime && _instantiateTransitDistance;

    _solver.solve(restoreSolution);



    Shouldn’t IloRestoreSolution overwrite the initial solution with the new improved one so it can be used when inserting new visits? If this is not the case, how can I pass the new improved solution to IloInsertVisit in order to add new visits to the improved solution, not the initial one?



    Regards,

    #CPOptimizer
    #DecisionOptimization