User Tools

Site Tools


gams:split_up_my_model_in_a_definition_and_into_a_data_part

Differences

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

Link to this comparison view

gams:split_up_my_model_in_a_definition_and_into_a_data_part [2008/10/24 14:42]
support created
gams:split_up_my_model_in_a_definition_and_into_a_data_part [2008/10/24 14:43] (current)
support
Line 1: Line 1:
 ====== How do I split up my model in a definition and into a data part? ====== ====== How do I split up my model in a definition and into a data part? ======
-Consider the transport example. Please find below two part of the transport model. The first one (first.gms with the equations and (empty) set/​parameter definition) must be run first and saved in a restart file. It may contain data assignments (line 16 in ''​first.gms''​) and therefore we cannot execute the GAMS code (impossible without data). Hence we have to run ''​gams first a=c s=sfirst''​+Consider the transport example. Please find below two part of the transport model. The first one (''​first.gms'' ​with the equations and (empty) set/​parameter definition) must be run first and saved in a restart file.  
 + 
 +It may contain data assignments (line 16 in ''​''​first.gms''​''​) and therefore we cannot execute the GAMS code (impossible without data). Hence we have to run ''​gams first a=c s=sfirst''​
  
 The ''​a=c''​ says '​compile only'. Another specialty is that we have to provide the compiler with the dimension of the sets (we don't have to do that if we fill the sets with data, but without data we have to do that). Hence the basic set definition (''​i''​ and ''​j''​) have to have the '''​*'''​ as an index. The ''​a=c''​ says '​compile only'. Another specialty is that we have to provide the compiler with the dimension of the sets (we don't have to do that if we fill the sets with data, but without data we have to do that). Hence the basic set definition (''​i''​ and ''​j''​) have to have the '''​*'''​ as an index.
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/split_up_my_model_in_a_definition_and_into_a_data_part.txt · Last modified: 2008/10/24 14:43 by support