Docs GODI Archive
Projects Blog Link DB

Search GODI:


More options
File lib/ocaml/pkg-lib/facile/fcl_linear.mli GODI Package godi-facile
Library facile
 
   fcl_linear.cmi_pretty    fcl_linear.mli    Sources  
(***********************************************************************)
(*                                                                     *)
(*                           FaCiLe                                    *)
(*                 A Functional Constraint Library                     *)
(*                                                                     *)
(*            Nicolas Barnier, Pascal Brisset, LOG, CENA               *)
(*                                                                     *)
(* Copyright 2004 CENA. All rights reserved. This file is distributed  *)
(* under the terms of the GNU Lesser General Public License.           *)
(***********************************************************************)
type operator = LessThan | Equal | Diff

val min_max_plus_inter : int -> int -> int -> int -> (int * int)
val min_max_minus_inter : int -> int -> int -> int -> (int * int)

val cstr : ?boolsum:int ->
  (int * Fcl_var.Fd.t) list -> operator -> int -> Fcl_cstr.t
(* [cstr (?boolsum:int) coef_vars op d] returns the linear constraint
   [sum coef_vars op d] and automatically optimizes boolean sums larger
   than [boolsum] variables (default: 5). *)

val linear_aux : (int * Fcl_var.Fd.t) list -> int -> Fcl_var.Fd.t
val shift_cstr : Fcl_var.Fd.t -> Fcl_var.Fd.t  -> int -> Fcl_cstr.t
(** [shift_cstr y x d] returns the constraint [y = x+d] *)
val get_boolsum_threshold : unit -> int
(** Returns the minimum size for boolean sums optimization. *)
val set_boolsum_threshold : int -> unit
(** Set the minimum size for boolean sums optimization.
   [boolsum_threshold max_int] disables it. *)
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml