Originally posted by: SystemAdmin
Hi all,
I have small problem with attached model and data file.
In this model I always get result where my interval variables are always allocated to one seq variable. where as i have so many seq variable and if my model distribute i can get better result to my objective.
Here are my seq and interval variable
// interval of each route
{dvar interval tvisit
http://n in 1..numberofdocksr in RouteData optional(r.routeid!=4 && r.routeid!=0) in planstarttime..planendtime size r.loadtime+r.paperworktime; }
// sequence variable for each day warehouse use
{dvar sequence route
http://t in 1..numberofdocks in all(r in RouteData)tvisit[t][r] types all(r in RouteData) r.routeid;}
Please see the attached files for more details and suggest reason for the inferior solution i am getting
Thanks
Arun Lila
###########################
Data file
// A tuple have information about warehouse
numberofdocks = 2;
planstarttime = 0;
planendtime = 1440;
waitingcost = 100;
// A tuple have all information about a route
RouteData = {
<0, 0, 0, 0>,
<7, 1, 227, 30>,
<24, 1, 138, 30>,
<20, 2, 174, 30>,
<4, 0, 0, 0>,
};
RouteCustData = {
<7, 0, 0, 0, 0, 0, 1440>,
<7, 1, 357, 30, 20, 720, 2880>,
<24, 0, 0, 0, 0, 0, 1440>,
<24, 3, 58, 30, 40, 0, 2100>,
<24, 4, 52, 30, 5, 540, 5760>,
<24, 2, 87, 30, 15, 900, 2880>,
<20, 0, 0, 0, 0, 0, 1440>,
<20, 7, 86, 30, 80, 0, 2640>,
<20, 6, 136, 30, 5, 0, 2520>,
<20, 5, 29, 30, 5, 0, 2040>,
};
RouteCustTimeWindowsData =
{
<7, 1, 1, 2160, 2880>,
<7, 1, 2, 720, 1440>,
<24, 3, 1, 1440, 2100>,
<24, 3, 2, 0, 660>,
<24, 4, 1, 4860, 5760>,
<24, 4, 2, 3420, 4320>,
<24, 4, 3, 1980, 2880>,
<24, 4, 4, 540, 1440>,
<24, 2, 1, 2340, 2880>,
<24, 2, 2, 900, 1440>,
<20, 7, 1, 0, 2640>,
<20, 6, 1, 1200, 2520>,
<20, 5, 1, 1380, 2040>,
};
#ConstraintProgramming-General#DecisionOptimization