Dear All,
I have to decision variable p_dr(t) and p_im(t),my objective is OBJ=e=p_dr(t)*k1(t)+p_im(t)*k2(t)
k1 and k2 are parameters.
I want to add this constraint,when p_dr(t)=e=0 must be p_imb(t)=e=0,
i write this cod : const01(t)$(p_dr(t)=0)…p_imb(t)=e=0;
but can not run,and happen error.
Please,guide me how can solve this problem,
Thank you
MEHRDAD
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
Please do first check the manual.
Under “11.3 The Dollar Condition”, the first few lines explain why this does not work.
Le jeudi 7 novembre 2013 07:44:00 UTC+1, ARYABOD a écrit :
Dear All,
I have to decision variable p_dr(t) and p_im(t),my objective is OBJ=e=p_dr(t)*k1(t)+p_im(t)*k2(t)
k1 and k2 are parameters.
I want to add this constraint,when p_dr(t)=e=0 must be p_imb(t)=e=0,
i write this cod : const01(t)$(p_dr(t)=0)…p_imb(t)=e=0;
but can not run,and happen error.
Please,guide me how can solve this problem,
Thank you
MEHRDAD
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
Hello,
Dollar condition can not be used for Variables. Depending on model, Conditions on variable can be imposed by introducing binary variable.
ZT.
On Thursday, November 7, 2013 7:44:00 AM UTC+1, ARYABOD wrote:
Dear All,
I have to decision variable p_dr(t) and p_im(t),my objective is OBJ=e=p_dr(t)*k1(t)+p_im(t)*k2(t)
k1 and k2 are parameters.
I want to add this constraint,when p_dr(t)=e=0 must be p_imb(t)=e=0,
i write this cod : const01(t)$(p_dr(t)=0)…p_imb(t)=e=0;
but can not run,and happen error.
Please,guide me how can solve this problem,
Thank you
MEHRDAD
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
Dear Zaheer,
Thank You.
On Sat, Nov 9, 2013 at 5:02 AM, ZT wrote:
Hello,
Dollar condition can not be used for Variables. Depending on model, Conditions on variable can be imposed by introducing binary variable.
ZT.
On Thursday, November 7, 2013 7:44:00 AM UTC+1, ARYABOD wrote:
Dear All,
I have to decision variable p_dr(t) and p_im(t),my objective is OBJ=e=p_dr(t)*k1(t)+p_im(t)*k2(t)
k1 and k2 are parameters.
I want to add this constraint,when p_dr(t)=e=0 must be p_imb(t)=e=0,
i write this cod : const01(t)$(p_dr(t)=0)…p_imb(t)=e=0;
but can not run,and happen error.
Please,guide me how can solve this problem,
Thank you
MEHRDAD
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
Dear olivier,
Thanks.
On Fri, Nov 8, 2013 at 4:15 PM, dax wrote:
Please do first check the manual.
Under “11.3 The Dollar Condition”, the first few lines explain why this does not work.
Le jeudi 7 novembre 2013 07:44:00 UTC+1, ARYABOD a écrit :
Dear All,
I have to decision variable p_dr(t) and p_im(t),my objective is OBJ=e=p_dr(t)*k1(t)+p_im(t)*k2(t)
k1 and k2 are parameters.
I want to add this constraint,when p_dr(t)=e=0 must be p_imb(t)=e=0,
i write this cod : const01(t)$(p_dr(t)=0)…p_imb(t)=e=0;
but can not run,and happen error.
Please,guide me how can solve this problem,
Thank you
MEHRDAD
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.