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 : floatThe constant 0.0.
val geq_zero : floatThe constant 1.0.
val leq_zero : floatThe constant -1.0.
val gt_zero : floatThe constant 2.0.
val lt_zero : floatThe constant -2.0.
type t =
| |
Unconstrained |
(* |
| *) |
| |
GeqZero |
(* |
| *) |
| |
LeqZero |
(* |
| *) |
| |
GtZero |
(* |
| *) |
| |
LtZero |
(* |
| *) |
For pattern-matching on constraints. See Sundials.Constraint.of_float.
val to_float : t -> floatMap constraint values to floating-point constants.
val of_float : float -> tMap floating-point constants to constraint values.
Invalid_argument The given value is not a legal constraint.