package lp
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Module for the optimization problem (model).
module Pclass : sig ... end
Module for the optimization problem class.
val make : ?name:string -> Objective.t -> Cnstr.t list -> t
Make problem from an Objective.t
and a constraint (Cnstr.t
) list. String name
can be given optionally.
val name : t -> string option
Get name of the problem.
val objective : t -> Objective.t
Take Objective.t
of the problem.
val obj_cnstrs : t -> Objective.t * Cnstr.t list
Get problem content as a pair of Objective.t
and constraint (Cnstr.t
) list.
Make list of variables with unique structure (name and attributes) in the problem.
val collision : t -> bool
Check whether a collision (a variable with same name but different attributes) exists in the problem.
val vname_list : t -> string list
Make list of (unique) variable names in the problem.
val validate : t -> bool
Validate the problem. true
(false) means the problem is valid (invalid).
val to_string : ?short:bool -> t -> string
Express the problem in LP file format string.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>