Nominal: Difference between revisions

From ASCEND
Jump to navigation Jump to search
Created page with '{{DISPLAYTITLE:nominal}} The '''nominal''' attribute of a real variable in an ASCEND model is used to set the variable's scaling. Usage: <source lang=a4c> d_sun IS_A distanc…'
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
</source>
</source>


See [[Scaling]] for more information.
See also [[Scaling]], [[lower_bound]], [[upper_bound]], [[default]].
 
[[Category:Syntax]]

Latest revision as of 07:21, 5 July 2011

The nominal attribute of a real variable in an ASCEND model is used to set the variable's scaling.

Usage:

d_sun IS_A distance; (* distance from Earth to Sun *)
METHODS
METHOD default_self;
   (* set the nominal value of x to 8 light-seconds *)
   x.nominal := 1{LIGHT_C} * 8{s};
END;

See also Scaling, lower_bound, upper_bound, default.