Increment Module
Creates an increment from the positive values of a ValueUnit, removing multiples of a smaller value, and restricts and calculates with increments. Raises a solver exception for an empty increment.
Functions and values
| Function or value |
Description
|
||
|
|||
Calculates the resulting increment of a calculation with op in an equation: y = x1 op x2, where incr1 is the increment of x1, incr2 is the increment of x2 and y.incr is the resulting increment. An increment can only be calculated when the operator is multiplication or addition with equal increments.
|
|||
Calculate an increment with incr1 of x1 and incr2 of x2 in an equation: y = x1 op x2 An increment can only be calculated when the operator is multiplication or addition with equal increments.
|
|||
|
|||
|
|||
Creates an Filters out negative values and removes multiples.
|
|||
|
Check if 'incr1' equals 'incr2'
Example
val incr1: obj
val incr2: obj
|
||
|
Get the intersection of two Returns the ValueUnit with Unit of the first increment.
Example
val incr1: obj
val incr2: obj
|
||
|
|||
|
|||
|
|||
|
|||
Full Usage:
restrict newIncr oldIncr
Parameters: Returns: Increment
The restricted increment: the least common multiple of every pair of a new
and an old increment value, without the values that are a multiple of another.
The values on both increments lie on these least common multiples.
|
Restrict an oldIncr with a newIncr.
Example
val oldIncr: obj
val newIncr: obj
|
||
|
|||
Full Usage:
toString exact arg2
Parameters:
bool
-
Print exact or not
arg1 : Increment
Returns: string
|
Get the string representation of an
|
||
|
GenPRES