package nlopt-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type algorithm =
  1. | NLOPT_GN_DIRECT
  2. | NLOPT_GN_DIRECT_L
  3. | NLOPT_GN_DIRECT_L_RAND
  4. | NLOPT_GN_DIRECT_NOSCAL
  5. | NLOPT_GN_DIRECT_L_NOSCAL
  6. | NLOPT_GN_DIRECT_L_RAND_NOSCAL
  7. | NLOPT_GN_ORIG_DIRECT
  8. | NLOPT_GN_ORIG_DIRECT_L
  9. | NLOPT_GD_STOGO
  10. | NLOPT_GD_STOGO_RAND
  11. | NLOPT_LD_LBFGS_NOCEDAL
  12. | NLOPT_LD_LBFGS
  13. | NLOPT_LN_PRAXIS
  14. | NLOPT_LD_VAR1
  15. | NLOPT_LD_VAR2
  16. | NLOPT_LD_TNEWTON
  17. | NLOPT_LD_TNEWTON_RESTART
  18. | NLOPT_LD_TNEWTON_PRECOND
  19. | NLOPT_LD_TNEWTON_PRECOND_RESTART
  20. | NLOPT_GN_CRS2_LM
  21. | NLOPT_GN_MLSL
  22. | NLOPT_GD_MLSL
  23. | NLOPT_GN_MLSL_LDS
  24. | NLOPT_GD_MLSL_LDS
  25. | NLOPT_LD_MMA
  26. | NLOPT_LN_COBYLA
  27. | NLOPT_LN_NEWUOA
  28. | NLOPT_LN_NEWUOA_BOUND
  29. | NLOPT_LN_NELDERMEAD
  30. | NLOPT_LN_SBPLX
  31. | NLOPT_LN_AUGLAG
  32. | NLOPT_LD_AUGLAG
  33. | NLOPT_LN_AUGLAG_EQ
  34. | NLOPT_LD_AUGLAG_EQ
  35. | NLOPT_LN_BOBYQA
  36. | NLOPT_GN_ISRES
  37. | NLOPT_AUGLAG
  38. | NLOPT_AUGLAG_EQ
  39. | NLOPT_G_MLSL
  40. | NLOPT_G_MLSL_LDS
  41. | NLOPT_LD_SLSQP
type result =
  1. | NLOPT_FAILURE
  2. | NLOPT_INVALID_ARGS
  3. | NLOPT_OUT_OF_MEMORY
  4. | NLOPT_ROUNDOFF_LIMITED
  5. | NLOPT_FORCED_STOP
  6. | NLOPT_SUCCESS
  7. | NLOPT_STOPVAL_REACHED
  8. | NLOPT_FTOL_REACHED
  9. | NLOPT_XTOL_REACHED
  10. | NLOPT_MAXEVAL_REACHED
  11. | NLOPT_MAXTIME_REACHED
exception Failure
exception Invalid_args
exception Out_of_memory
exception Roundoff_limited
exception Forced_stop
val create : algorithm -> int -> t
val set_min_objective : t -> (float array -> float array option -> float) -> unit
val set_max_objective : t -> (float array -> float array option -> float) -> unit
val optimize : t -> float array -> result * float array * float
val get_dimension : t -> int
val set_lower_bounds : t -> float array -> unit
val get_lower_bounds : t -> float array
val set_upper_bounds : t -> float array -> unit
val get_upper_bounds : t -> float array
val add_inequality_constraint : t -> (float array -> float array option -> float) -> float -> unit
val add_equality_constraint : t -> (float array -> float array option -> float) -> float -> unit
val set_stopval : t -> float -> unit
val get_stopval : t -> float
val set_ftol_rel : t -> float -> unit
val get_ftol_rel : t -> float
val set_ftol_abs : t -> float -> unit
val get_ftol_abs : t -> float
val set_xtol_rel : t -> float -> unit
val get_xtol_rel : t -> float
val set_xtol_abs : t -> float array -> unit
val get_xtol_abs : t -> float array
val set_maxeval : t -> int -> unit
val get_maxeval : t -> int
val set_maxtime : t -> float -> unit
val get_maxtime : t -> float
val force_stop : t -> unit
val set_local_optimizer : t -> t -> unit
val set_initial_step : t -> float array -> unit
val get_initial_step : t -> float array -> float array
val set_population : t -> int -> unit
val set_vector_storage : t -> int -> unit
val get_vector_storage : t -> int
val version : unit -> int * int * int
val string_of_result : result -> string
OCaml

Innovation. Community. Security.