package libabsolute
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Libabsolute.Csp
This module defines the main types used for the constraint language of AbSolute, along with the type of problems, and instance.
Types
type instance = Q.t Tools.VarMap.tthe instance type
annotations to test the validity of the solver
type t = {variables : decl list;constraints : Constraint.t list;objective : Expr.t option;solutions : info option;
}type of constraint satisfaction problems
Accessors
val get_var_names : t -> string listreturns list of all variable names
Constructors
val empty : tempty problem, with no variables and no constraints
adds a real variable in the csp, with float bounds
adds an integer variable in the csp with integer bounds
val add_constr : t -> Constraint.t -> tadds a constraint to the csp
Operations
fix_var csp var cst builds a new csp identical to the csp where all the occurences of the variable var are replaced by the constant cst, and where the variables v is removed from the csp variables.
Printing
val pp_typ : Format.formatter -> typ -> unitval pp_declarations : Format.formatter -> (typ * string * Dom.t) list -> unitval pp_constraints : Format.formatter -> Constraint.t list -> unitval print : Format.formatter -> t -> unit sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page