Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

CP optimizer, Transition matrix in noOoverlap

  • 1.  CP optimizer, Transition matrix in noOoverlap

    Posted Wed September 27, 2017 03:57 AM

    Originally posted by: AMM1


    good morning

    i am solving vrpmtw using cp optimizer

    in my data set , i have the x and y coordinates of each client

    i have problem regarding Transition matrix used in NoOverlap function

    i calculate the distances using 

    tuple triplet { int c1; int c2; int d; };
    {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 };

     

    i need to make Dist in real values not integers and then use it in noOverlap(truck[t],Dist);

    how can i convert it?

    and should i use after or next version? (noOverlap(truck[ t],Dist,After ),noOverlap(truck[ t],Dist,next )


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: CP optimizer, Transition matrix in noOoverlap