Originally posted by: sandeepsinghchauhan
Hello alex, when i put demand as given in book as
demand =
[[[[10,15,20],
[20,25,35],
[45,55,60]],
[[20,25,35],
[40,42,45],
[50,52,63]],
[[45,50,60],
[45,46,47],
[55,56,64]]
]
[
[[20, 25, 35],
[42,45,46],
[50,52,60]]
[[10,40,50],
[50,60,80],
[60,65,90]]
[[50,55,80],
[20,30,50],
[10,40,60]]
]
[
[[30,35,40],
[40,50,55],
[50,60,80]],
[[30,40,60],
[10,40,45],
[50,60,70]],
[[50,70,80],
[40,45,60],
[60,65,70]]
]
];
then i am getting following solutions:
// solution (optimal) with objective 168922.24
[1200 900 500]
[[1150 1150 1300]
[1100 1100 1100]
[700 700 700]]
[[[1500 1500 1500]
[1500 1500 1500]
[1500 1500 1500]]
[[800 800 800]
[800 800 800]
[800 800 800]]
[[480 480 450]
[480 480 450]
[480 480 450]]]
Which is same as given in book
---------------------------------------------------------------
For second period i updated demand as:
solution (optimal) with objective 173550
[1200 900 500]
[[1150 1150 1150]
[1100 1100 1100]
[700 700 700]]
[[[1500 1500 1500]
[1500 1500 1500]
[1500 1500 1500]]
[[800 800 800]
[800 800 800]
[800 800 800]]
[[480 480 450]
[480 480 450]
[480 480 450]]]
Getting same solutions as given in book:
solution (optimal) with objective 173550
[1200 900 500]
[[1150 1150 1150]
[1100 1100 1100]
[700 700 700]]
[[[1500 1500 1500]
[1500 1500 1500]
[1500 1500 1500]]
[[800 800 800]
[800 800 800]
[800 800 800]]
[[480 480 450]
[480 480 450]
[480 480 450]]]
------------------------------------------------------------------------
for 3rd period as demand value becomes:
demand =
[[[[25,30,40],
[50,40,45],
[50,53,65]],
[[25,30,40],
[50,40,45],
[50,53,65]],
[[25,30,40],
[50,40,45],
[50,53,65]]
]
[
[[22, 45, 50],
[45,55,75],
[50,60,80]]
[[22, 45, 50],
[45,55,75],
[50,60,80]]
[[22, 45, 50],
[45,55,75],
[50,60,80]]
]
[
[[30,35,40],
[40,50,55],
[50,60,80]],
[[30,40,60],
[10,40,45],
[50,60,70]],
[[50,70,80],
[40,45,60],
[60,65,70]]
]
];
Still giving me same solution as given in book:
[950 900 500]
[[1300 1300 1300]
[1100 1100 1100]
[700 700 700]]
[[[1500 1500 1500]
[1500 1500 1500]
[1500 1500 1500]]
[[800 800 800]
[800 800 800]
[800 800 800]]
[[480 480 480]
[480 480 480]
[480 480 480]]]
---------------------------------------------------
update 3rd period (take-off)
demand =
[[[[25,30,40],
[50,40,45],
[50,53,65]],
[[25,30,40],
[50,40,45],
[50,53,65]],
[[25,30,40],
[50,40,45],
[50,53,65]]
]
[
[[22, 45, 50],
[45,55,75],
[50,60,80]]
[[22, 45, 50],
[45,55,75],
[50,60,80]]
[[22, 45, 50],
[45,55,75],
[50,60,80]]
]
[
[[45,60,75],
[20,40,50],
[55,60,75]],
[[45,60,75],
[20,40,50],
[55,60,75]],
[[45,60,75],
[20,40,50],
[55,60,75]]
]
];
I am not getting same solutions as given in book
solution (optimal) with objective 193460
[1200 900 500]
[[1300 1300 1300]
[1100 1100 1100]
[700 700 700]]
[[[1500 1500 1500]
[1500 1500 1500]
[1500 1500 1500]]
[[820 820 820]
[820 820 820]
[820 820 820]]
[[480 480 480]
[480 480 480]
[480 480 480]]]
Book has the different solution, i am attaching the snap of solution which given in book
please help
#DecisionOptimization#OPLusingCPLEXOptimizer