M
MIchael
Hello
I use solver to calculate the minimum with the following equation
x1+n1*y1+o1*z1+x2+n2*y2+o2*z2=Min!
shipping costs should only be included of the shop is used!, therefore a if-the function is used:
Cell x1(and x2) contain the function if(or(n1>0;o2>0;10;0) thats adds the shipping costs.
But this is ignored by solver, as if the if equation is done after the solver calculation.
Optimal would be the following (500Euro):
x n y o
z
shipping count(var) PriceWine count (var) PriceH2O
shop1 10 4 120 1 10
shop2 0 0 120 0
11
but Solver calculates (510Euro):
x n y o
z
shipping count(var) PriceWine count(var) PriceH2O
shop1 10 2 120 1 10
shop2 10 2 120 0
11
(constraints are; integer; >0; n1+n2=4; o1+o2=1)
Any idea why and any workaround available?
Thanks for the help!
MIchael
I use solver to calculate the minimum with the following equation
x1+n1*y1+o1*z1+x2+n2*y2+o2*z2=Min!
shipping costs should only be included of the shop is used!, therefore a if-the function is used:
Cell x1(and x2) contain the function if(or(n1>0;o2>0;10;0) thats adds the shipping costs.
But this is ignored by solver, as if the if equation is done after the solver calculation.
Optimal would be the following (500Euro):
x n y o
z
shipping count(var) PriceWine count (var) PriceH2O
shop1 10 4 120 1 10
shop2 0 0 120 0
11
but Solver calculates (510Euro):
x n y o
z
shipping count(var) PriceWine count(var) PriceH2O
shop1 10 2 120 1 10
shop2 10 2 120 0
11
(constraints are; integer; >0; n1+n2=4; o1+o2=1)
Any idea why and any workaround available?
Thanks for the help!
MIchael