Hi guys
thank you for providing some insights on previous post.
Can anyone tell me why following problem occurs in execution:-
This is one of equation:-
overallobjf…Z1 =e= ccusum(i,qcu(i)) + chusum(j,qhu(j)) +
- 1200*(qhu(“1”)/(1.2*[dthu(“1”)42{dthu(“1”)+ 42}/
2]**0.333))**0.6;
while execution error is : division by 0, and equation listing shows:
overallobjf… Z1 + (0)dthu(1) - 20qcu(1) - 20*qcu(2) - (80)*qhu(1)
- 80*qhu(2) =E= 0 ; (LHS = UNDF)
I know some division by 0 is occurring in second line but all it
contains is variable (qhu(i)) and constants. I can’t figure out why
division by 0 is occurring.
\
Patil
In your expression, if dthu(“1”) = 0 then, the denominator goes to zero, you can set a lower bound > 0, such as: dthu.lo(“1”) = 0.0001.
I suppose that this should fix it.
Regards
2011/8/1 pratik patil
Hi guys
thank you for providing some insights on previous post.
Can anyone tell me why following problem occurs in execution:-
This is one of equation:-
overallobjf…Z1 =e= ccusum(i,qcu(i)) + chusum(j,qhu(j)) +
- 1200*(qhu(“1”)/(1.2*[dthu(“1”)42{dthu(“1”)+ 42}/
2]**0.333))**0.6;
while execution error is : division by 0, and equation listing shows:
overallobjf… Z1 + (0)dthu(1) - 20qcu(1) - 20*qcu(2) - (80)*qhu(1)
- 80*qhu(2) =E= 0 ; (LHS = UNDF)
I know some division by 0 is occurring in second line but all it
contains is variable (qhu(i)) and constants. I can’t figure out why
division by 0 is occurring.
Edson Valle
edsoncv@gmail.com
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.