gams:define_several_independent_models_in_one_gams_file

This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | Last revision Both sides next revision | ||

gams:define_several_independent_models_in_one_gams_file [2007/12/18 11:07] Franz Nelissen |
gams:define_several_independent_models_in_one_gams_file [2008/02/15 09:22] Franz Nelissen |
||
---|---|---|---|

Line 23: | Line 23: | ||

and for each independent model you just declare another model, which includes the basic model and the additions equation(s): | and for each independent model you just declare another model, which includes the basic model and the additions equation(s): | ||

<code> | <code> | ||

- | ''model nc1 /basic, nc_eq1/''; | + | model nc1 /basic, nc_eq1/; |

- | ''model nc2 /basic, nc_eq2/''; | + | model nc2 /basic, nc_eq2/; |

- | ''model nc3 /basic, nc_eq3/''; | + | model nc3 /basic, nc_eq3/; |

+ | </code> | ||

+ | Another example is: | ||

+ | <code> | ||

+ | $call '=gamslib 1'; | ||

+ | $include trnsport.gms | ||

+ | | ||

+ | model trans1 /cost/, | ||

+ | trans2 /supply, demand/, | ||

+ | transport2 /trans1, trans2/; | ||

+ | solve transport2 using lp minimizing z ; | ||

</code> | </code> |

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/define_several_independent_models_in_one_gams_file.txt · Last modified: 2008/06/18 12:57 by support