calc_scaling: calc_scaling

View source: R/calc_scaling.R

calc_scalingR Documentation

calc_scaling

Description

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.

Usage

calc_scaling(gdx, file=NULL, magnitude=2)

Arguments

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.

Value

A vector with the scaling GAMS code if file=NULL, otherwise nothing is returned.

Author(s)

Jan Philipp Dietrich

See Also

out,readGDX

Examples


## Not run: calc_scaling("fulldata.gdx")


pik-piam/gdx documentation built on March 12, 2024, 10:30 a.m.