calc_scaling | R Documentation |
This function creates a GAMS file with scaling of variables. The scaling is calculated based on a gdx file containing all variables of a run.
calc_scaling(gdx, file=NULL, magnitude=2)
gdx |
a GDX list as created by readGDX, or the file name of a gdx file |
file |
A file name the scaling GAMS code should be written to. If NULL the code is returned by the function |
magnitude |
The order of magnitude for which variables should be scaled. All variables with average absolute values which are either below 10e(-magnitude) or above 10e(magnitude) will be scaled. |
A vector with the scaling GAMS code if file=NULL, otherwise nothing is returned.
Jan Philipp Dietrich
out
,readGDX
## Not run: calc_scaling("fulldata.gdx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.