Find the minimum variable

Hi gams world,

I have a problem in formulating a model:

HSP(i,s) are variables in my model, and I want to put the minimum HSP(i,s) into my objective equation: A =e= B + MINHSP, assuming that MINHSP is the minimun of HSP(i,s). The model is for maximizing “A”. But sincew since HSP(i,s) are variables, I don’t know how to find the minimum one.

What should I do?

Thanks


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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hi Dylan



You can add a set of constraints



Defminhsp(i,s) … MINHSP =L= HSP(i,s);



Since you are maximizing A your solver will select the largest possible value of MINHSP, which will be equal to the smallest HSP.



Good luck



Arne


\

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: adrud@arki.dk



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Dylan Lan
Sent: Tuesday, March 05, 2013 4:21 AM
To: gamsworld@googlegroups.com
Subject: Find the minimum variable



Hi gams world,



I have a problem in formulating a model:



HSP(i,s) are variables in my model, and I want to put the minimum HSP(i,s) into my objective equation: A =e= B + MINHSP, assuming that MINHSP is the minimun of HSP(i,s). The model is for maximizing “A”. But sincew since HSP(i,s) are variables, I don’t know how to find the minimum one.



What should I do?



Thanks


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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


\

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Reply-to: gamsworld@googlegroups.com

Thanks alot Arne.
Dylan

在 2013年3月5日星期二UTC+8下午4时10分52秒,Arne Stolbjerg Drud写道:

Hi Dylan



You can add a set of constraints



Defminhsp(i,s) … MINHSP =L= HSP(i,s);



Since you are maximizing A your solver will select the largest possible value of MINHSP, which will be equal to the smallest HSP.



Good luck



Arne


\

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: ad…@arki.dk



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Dylan Lan
Sent: Tuesday, March 05, 2013 4:21 AM
To: gams...@googlegroups.com
Subject: Find the minimum variable



Hi gams world,



I have a problem in formulating a model:



HSP(i,s) are variables in my model, and I want to put the minimum HSP(i,s) into my objective equation: A =e= B + MINHSP, assuming that MINHSP is the minimun of HSP(i,s). The model is for maximizing “A”. But sincew since HSP(i,s) are variables, I don’t know how to find the minimum one.



What should I do?



Thanks


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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


\

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\