Hello to all

my problem in modeling :

I want to the value of efficiency from model1 used in model2.

Thank you for your help

–

CCR.gms (1.38 KB)

Navid.docx (42.4 KB)

Hello to all

my problem in modeling :

I want to the value of efficiency from model1 used in model2.

Thank you for your help

–

CCR.gms (1.38 KB)

Navid.docx (42.4 KB)

If I understand you correctly, you want to use the obtained variable value from model 1 as a parameter in model 2. If this correct, then,

- Solve model 1.
- In the same script, after you ask GAMS to solve model 1, then create a Parameter as follows:

solve model1 using lp max z1;

parameter xx(m,t);

xx(m,t) = x.l(m,t); ** Note that, both have the same sets. This is just an example.

write your variables and constraints, then ask GAMS to solve model 2.

solve model2 using lp max z2;

where, the parameter xx(m,t) is the efficiency parameter in model 2, and x.l(m,t) is the efficiency variable value from model 1.

I hope this will help you, or giving you an idea.

On Mon, Jul 6, 2015 at 4:10 AM, navid arab wrote:

Hello to all

my problem in modeling :

I want to the value of efficiency from model1 used in model2.

Thank you for your help

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/d/optout.

\

\

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/d/optout.