Logo GenPRES

OrderVariableReference Module

Finds the order variable that a reference names, tells whether the variable is basic for a schedule and lists the adjusted and the invariant variables.

Functions and values

Function or value Description

adjusted ord

Full Usage: adjusted ord

Parameters:
Returns: OrderVariableReference list

Returns the references to the per kg or per m2 variables: the quantity in the orderable per adjust unit of the orderable, every component and every item, and the adjusted doses of the orderable, every component and every item.

ord : Order
Returns: OrderVariableReference list

invariants ord

Full Usage: invariants ord

Parameters:
Returns: OrderVariableReference list

Returns the references to the invariant variables: the adjust quantity, the component quantity of each component, the component quantity and concentration of each item, and on a continuous schedule the dose count.

ord : Order
Returns: OrderVariableReference list

isBasic sch ovarRef

Full Usage: isBasic sch ovarRef

Parameters:
Returns: bool

Returns true when the variable is basic for the schedule, so the other order variables are calculated from it: the frequency when the schedule has one, the dose quantity unless the schedule is continuous, the dose rate when the schedule has a time, the orderable quantity of each component, and the order count unless the schedule is once or once timed.

sch : Schedule
ovarRef : OrderVariableReference
Returns: bool

tryGet ord ovarRef

Full Usage: tryGet ord ovarRef

Parameters:
Returns: OrderVariable option

Returns the order variable that the reference names, or None when the order has no such variable.

ord : Order
ovarRef : OrderVariableReference
Returns: OrderVariable option

Type something to start searching.