Hi Bruno
You could define a third variable m(i) and an equation eq_m(i):
Eq_m(i).. m(i)*b(i) =E= a(i);
Obj.. z= E= sum(I, m(i));
Cheers
Renger
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
gamsworld+...@googlegroups.com.
To post to this group, send email to
gams...@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Hi Bruno: You need to think what values of b are allowed (feasible). If you are asking for a(i)/b(i) to be equal to a scalar (R), then b cannot be zero for any index. If the solver takes you there, you can use a small artificial bound (b.lo(i) =1E-6).
If you want different equations in the model according to the value of variables (if b=0 is allowed, and eq1 doesn't apply to those indexes ) , that is called "disjunctive programming", look it up.
Best regards!
Claudio
--
You received this message because you are subscribed to a topic in the Google Groups "gamsworld" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gamsworld/8fxMcDznTaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gamsworld+...@googlegroups.com.
On Feb 14, 2016, at 8:11 PM, Claudio Delpino <clade...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "gamsworld" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gamsworld/8fxMcDznTaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gamsworld+...@googlegroups.com.