Quintiq file version 2.0
|
#parent: #root
|
StaticMethod GetVariableScaleType (
|
String vartypeshortname
|
) const as Number
|
{
|
TextBody:
|
[*
|
scalingtype := 0;
|
|
variablescalingtype := ScaleTypeMP::FindScaleType( vartypeshortname, ScaleTypeMP::GetStringVariableType() );
|
|
if( not isnull( variablescalingtype ) )
|
{
|
scalingtype := variablescalingtype.ScaleType();
|
}
|
else
|
{
|
scalingtype := Optimization::ScalingTypeNameNone();
|
info( ">>> Algorithm.GetVariableScaleType: Scaling factor type for variable [" + vartypeshortname + "] is not yet defined" );
|
}
|
|
return scalingtype;
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|