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