User Tools

Site Tools


gams:define_variables_over_subsets

Differences

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

Link to this comparison view

gams:define_variables_over_subsets [2007/08/15 12:38]
127.0.0.1 external edit
gams:define_variables_over_subsets [2008/06/19 14:37] (current)
support
Line 17: Line 17:
 Put another way, variables do not take up space or fully exist when they are declared, but only after they are referenced in your GAMS code, e.g. in an equation. Put another way, variables do not take up space or fully exist when they are declared, but only after they are referenced in your GAMS code, e.g. in an equation.
  
-If you do include some variables in the formulation and then fix them to zero (or any value), you should also use ''<​modelname>​.holdfixed''​. This tells GAMS/Base to eliminate the variables from the model, rather than passing them to the solver with zero lower and upper bounds.+If you include some variables in the formulation and then fix them to zero (or any value), you should also use ''<​modelname>​.holdfixed''​. This tells GAMS/Base to eliminate the variables from the model, rather than passing them to the solver with zero lower and upper bounds.
  
 Recent GAMS versions give you the cumulative memory usage and the line number being executed so you can see what statements are causing the most memory to be used and concentrate on changing those. ​ You might also have a look at the profile command line option, and try running with ''​profile=1''​ to get profiling info in the .lst file.  This will tell you what is using up all the memory. Recent GAMS versions give you the cumulative memory usage and the line number being executed so you can see what statements are causing the most memory to be used and concentrate on changing those. ​ You might also have a look at the profile command line option, and try running with ''​profile=1''​ to get profiling info in the .lst file.  This will tell you what is using up all the memory.
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/define_variables_over_subsets.txt ยท Last modified: 2008/06/19 14:37 by support