Variable
Namespace: Informedica.GenSolver.Lib
Nested types and modules
Type | Description |
Variable | Represents a variable in an
|
Module | Description |
Name | Funcions and type to handle |
ValueRange | Functions and types to handle |
Functions and values
Function or value | Description |
apply f var
Signature: f:(Variable -> '?6776) -> var:Variable -> '?6776
Type parameters: '?6776 |
Apply f to |
calc op (v1, v2)
Signature: op:(ValueRange -> ValueRange -> ValueRange) -> (v1:Variable * v2:Variable) -> Variable
|
Apply the operator op to v1 and v2
return an intermediate result |
count v
Signature: v:Variable -> int
|
Get the number of distinct values |
create succ n vs
Signature: succ:(Variable -> '?6772) -> n:Name -> vs:ValueRange -> '?6772
Type parameters: '?6772 |
Create a |
createRes
Signature: ValueRange -> Variable
|
Helper create function to
store the result of a |
createSucc
Signature: Name -> ValueRange -> Variable
|
Create a |
eqName v1 v2
Signature: v1:Variable -> v2:Variable -> bool
|
Checks whether v1 and v2 have the
same |
get
Signature: Variable -> Variable
|
Helper function for type inference |
getName v
Signature: v:Variable -> Name
|
|
getValueRange v
Signature: v:Variable -> ValueRange
|
Get the |
isSolvable
Signature: Variable -> bool
|
Checks whether a |
isSolved v
Signature: v:Variable -> bool
|
Checks whether a |
isUnrestricted
Signature: Variable -> bool
|
Checks whether there are no restrictions to
possible values a |
setName n v
Signature: n:Name -> v:Variable -> Variable
|
Change |
setNonZeroOrNegative v
Signature: v:Variable -> Variable
|
Set the values to a |
setValueRange v vr
Signature: v:Variable -> vr:ValueRange -> Variable
|
Apply a |