ValueRange
Namespace: Informedica.GenSolver.Lib
Parent Module: Variable
Functions and types to handle ValueRange
.
Nested types and modules
Type | Description |
Increment | The increment in a |
Maximum | The maximum value in
a |
Message | Failure messages. |
Minimum | The minimal value in
a |
Range | A |
ValueRange |
|
ValueRangeException |
|
Module | Description |
MinMaxCalcultor | Functions to calculate the |
Functions and values
Function or value | Description |
apply unr fValueSet fRange _arg1
Signature: unr:'?6901 -> fValueSet:(Set<BigRational> -> '?6901) -> fRange:(Range -> '?6901) -> _arg1:ValueRange -> '?6901
Type parameters: '?6901 |
![]() ![]() Aply the give functions to |
applyIncr f _arg1
Signature: f:(BigRational -> BigRational) -> _arg1:Increment -> Increment
|
![]() ![]() Apply f to the bigrational
value of |
applyMax f _arg1
Signature: f:(BigRational -> BigRational) -> _arg1:Maximum -> Maximum
|
![]() ![]() Apply f to the bigrational
value of |
applyMin f _arg1
Signature: f:(BigRational -> BigRational) -> _arg1:Minimum -> Minimum
|
![]() ![]() Apply f to the bigrational
value of |
applyRange (...)
Signature: fMin:(Minimum -> '?6903) -> fMax:(Maximum -> '?6903) -> fMinIncr:(Minimum * Increment -> '?6903) -> fIncrMax:(Increment * Maximum -> '?6903) -> fMinMax:(Minimum * Maximum -> '?6903) -> _arg1:Range -> '?6903
Type parameters: '?6903 |
![]() ![]() Aply the give functions to |
calc op (x1, x2)
Signature: op:(BigRational -> BigRational -> BigRational) -> (x1:ValueRange * x2:ValueRange) -> ValueRange
|
![]() ![]() Applies an infix operator op
to |
calcIncr op incr1 incr2
Signature: op:(BigRational -> BigRational -> BigRational) -> incr1:Increment option -> incr2:Increment option -> Increment option
|
![]() ![]() Calculate an increment with incr1 of x1 and incr2 of x2 in an equation: y = x1 op x2 |
calcOpt op c v1 v2
Signature: op:(BigRational -> BigRational -> BigRational) -> c:(BigRational -> '?6964) -> v1:BigRational -> v2:BigRational -> '?6964 option
Type parameters: '?6964 |
![]() ![]() Safely calculate v1 and v2 using operator op, returns None if operator is division and v2 is 0. |
contains v vr
Signature: v:BigRational -> vr:ValueRange -> bool
|
![]() ![]() Check whether a |
count
Signature: ValueRange -> int
|
![]() ![]() Count the number of values in a |
create succ fail unr vs min incr max
Signature: succ:(ValueRange -> '?6949) -> fail:(Message -> '?6949) -> unr:bool -> vs:Set<BigRational> -> min:Minimum option -> incr:Increment option -> max:Maximum option -> '?6949
Type parameters: '?6949 |
![]() ![]() Create a |
createExc
Signature: bool -> Set<BigRational> -> Minimum option -> Increment option -> Maximum option -> ValueRange
|
![]() ![]() Create |
createIncr succ fail i
Signature: succ:(Increment -> '?6941) -> fail:(BigRational -> '?6941) -> i:BigRational -> '?6941
Type parameters: '?6941 |
![]() ![]() Create an |
createMax isIncl m
Signature: isIncl:bool -> m:BigRational -> Maximum
|
![]() ![]() Create a |
createMin isIncl m
Signature: isIncl:bool -> m:BigRational -> Minimum
|
![]() ![]() Create a |
createOpt
Signature: bool -> Set<BigRational> -> Minimum option -> Increment option -> Maximum option -> ValueRange option
|
![]() ![]() Return an optional |
createValueSet arg0
Signature: arg0:Set<BigRational> -> ValueRange
|
![]() ![]() Create a |
empty
Signature: ValueRange
|
![]() ![]() An empty |
filter min incr max
Signature: min:Minimum option -> incr:Increment option -> max:Maximum option -> Set<BigRational> -> Set<BigRational>
|
![]() ![]() Filter a set of |
getIncr
Signature: ValueRange -> Increment option
|
![]() ![]() |
getMax
Signature: ValueRange -> Maximum option
|
![]() ![]() Get an optional |
getMin
Signature: ValueRange -> Minimum option
|
![]() ![]() Get an optional |
getRangeMax
Signature: Range -> Maximum option
|
![]() ![]() |
getRangeMin
Signature: Range -> Minimum option
|
![]() ![]() |
getSetMax s
Signature: s:Set<BigRational> -> Maximum option
|
![]() ![]() Get the maximum value in a |
getSetMin s
Signature: s:Set<BigRational> -> Minimum option
|
![]() ![]() Get the minimal value in a |
getValueSet
Signature: ValueRange -> Set<BigRational>
|
![]() ![]() Get a set of |
incrMaxValueRange incr max
Signature: incr:Increment -> max:Maximum -> ValueRange
|
![]() ![]() Create an |
incrToValue arg1
Signature: Increment -> BigRational
|
![]() ![]() Convert an |
isBetweenAndMultOf min incr max v
Signature: min:Minimum option -> incr:Increment option -> max:Maximum option -> v:BigRational -> bool
|
![]() ![]() Checks whether a |
isEmpty vr
Signature: vr:ValueRange -> bool
|
![]() ![]() Checks whether a |
isMaxExcl _arg1
Signature: _arg1:Maximum -> bool
|
![]() ![]() Checks whether |
isMaxIncl
Signature: Maximum -> bool
|
![]() ![]() Checks whether |
isMinExcl _arg1
Signature: _arg1:Minimum -> bool
|
![]() ![]() Checks whether |
isMinIncl
Signature: Minimum -> bool
|
![]() ![]() Checks whether |
isRange
Signature: ValueRange -> bool
|
![]() ![]() Checks whether a |
isUnrestricted
Signature: ValueRange -> bool
|
![]() ![]() Checks whether a |
isValueSet
Signature: ValueRange -> bool
|
![]() ![]() Checks whether a |
maxLTmax m1 m2
Signature: m1:Maximum -> m2:Maximum -> bool
|
![]() ![]() Checks whether |
maxMultipleOf incr max
Signature: incr:Increment -> max:Maximum -> BigRational
|
![]() ![]() |
maxRange isIncl m
Signature: isIncl:bool -> m:BigRational -> Range
|
![]() ![]() Create a |
maxSTEmax m1 m2
Signature: m1:Maximum -> m2:Maximum -> bool
|
![]() ![]() Checks whether |
maxToValue _arg1
Signature: _arg1:Maximum -> BigRational
|
![]() ![]() Convert a |
minEQmax max min
Signature: max:Maximum -> min:Minimum -> bool
|
![]() ![]() |
minIncrMaxToValueSet min incr max
Signature: min:Minimum -> incr:Increment -> max:Maximum -> ValueRange
|
![]() ![]() Create a set of |
minIncrValueRange min incr
Signature: min:Minimum -> incr:Increment -> ValueRange
|
![]() ![]() Create a |
minLTmax max min
Signature: max:Maximum -> min:Minimum -> bool
|
![]() ![]() |
minLTmin m1 m2
Signature: m1:Minimum -> m2:Minimum -> bool
|
![]() ![]() Checks whether |
minMaxValueRange succ fail min max
Signature: succ:(ValueRange -> '?6947) -> fail:(Message -> '?6947) -> min:Minimum -> max:Maximum -> '?6947
Type parameters: '?6947 |
![]() ![]() Create a |
minMultipleOf incr min
Signature: incr:Increment -> min:Minimum -> BigRational
|
![]() ![]() |
minRange isIncl m
Signature: isIncl:bool -> m:BigRational -> Range
|
![]() ![]() Create a |
minSTEmax max min
Signature: max:Maximum -> min:Minimum -> bool
|
![]() ![]() |
minSTEmin m1 m2
Signature: m1:Minimum -> m2:Minimum -> bool
|
![]() ![]() Checks whether |
minToValue _arg1
Signature: _arg1:Minimum -> BigRational
|
![]() ![]() Convert a |
print (...)
Signature: unr:bool -> vals:BigRational list -> min:'?6931 option -> minincl:bool -> incr:'?6932 option -> max:'?6933 option -> maxincl:bool -> string
Type parameters: '?6931, '?6932, '?6933 |
![]() ![]() Create a string (to print) representation of
a |
raiseExc m
Signature: m:Message -> '?6896
Type parameters: '?6896 |
![]() ![]() Raise a |
setIncr incr vr
Signature: incr:Increment -> vr:ValueRange -> ValueRange
|
![]() ![]() Apply a incr to a |
setMax max vr
Signature: max:Maximum -> vr:ValueRange -> ValueRange
|
![]() ![]() Apply a |
setMin min vr
Signature: min:Minimum -> vr:ValueRange -> ValueRange
|
![]() ![]() Apply a |
setValues vs vr
Signature: vs:Set<BigRational> -> vr:ValueRange -> ValueRange
|
![]() ![]() Appy a set of |
toString vr
Signature: vr:ValueRange -> string
|
![]() ![]() Convert a |
unrestricted
Signature: ValueRange
|
![]() ![]() An |