Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

modeling vrp with multiple time windows using cp

  • 1.  modeling vrp with multiple time windows using cp

    Posted Mon February 27, 2017 06:23 AM

    Originally posted by: AMM1


    good morning

    iam trying to model vrpmtw using cp i have problem in 

    but i still have problem in writing the objective function

    how to minimize total distance traveled while distances between clients are not given direct in the data file (.dat).

    In my case , Distances are calculated by the code it self using this :

    {triplet} Dist = {
       <p1.id,p2.id,ftoi(round(sqrt(pow(p2.x-p1.x,2)+pow(p2.y-p1.y,2))))> | p1, p2 in Positions }; 

    so how to minimize the total distances traveled in my case ?!

    Thank You .


    #ConstraintProgramming-General
    #DecisionOptimization


  • 2.  Re: modeling vrp with multiple time windows using cp

    Posted Tue February 28, 2017 09:26 AM

    Originally posted by: ChrisBr


    Hello Amal,
    You will find an answer in the other thread.
    Regards,
    Chris.

     


    #ConstraintProgramming-General
    #DecisionOptimization