module Constraint:sig
..end
Symbolic names for variable constraints. These names describe
the constants passed to Ida.set_constraints
and
Kinsol.set_constraints
.
val unconstrained : float
The constant 0.0
.
val geq_zero : float
The constant 1.0
.
val leq_zero : float
The constant -1.0
.
val gt_zero : float
The constant 2.0
.
val lt_zero : float
The constant -2.0
.
type
t =
| |
Unconstrained |
(* |
| *) |
| |
GeqZero |
(* |
| *) |
| |
LeqZero |
(* |
| *) |
| |
GtZero |
(* |
| *) |
| |
LtZero |
(* |
| *) |
For pattern-matching on constraints. See Sundials.Constraint.of_float
.
val to_float : t -> float
Map constraint values to floating-point constants.
val of_float : float -> t
Map floating-point constants to constraint values.
Invalid_argument
The given value is not a legal constraint.