Expand description
§nlopt
This is a wrapper for nlopt
, a C library of useful optimization
algorithms. For details of the various algorithms,
consult the nlopt docs
Structs§
- Nlopt
- This is the central
struct
of this library. It represents an optimization of a given function, called the objective function. The argumentx
to this function is ann
-dimensional double-precision vector. The dimensions are set at creation of the struct and cannot be changed afterwards. NLopt offers different optimization algorithms. One must be chosen at struct creation and cannot be changed afterwards. Always useNlopt::<T>::new()
to create anNlopt
struct.
Enums§
- Algorithm
- Fail
State - Success
State - Target
- Target object function state
Traits§
- MObjFn
- A trait representing a multi-objective function.
- ObjFn
- A trait representing an objective function.
Functions§
- approximate_
gradient - Helper function to calculate gradient of function numerically. Can be useful when a gradient must be provided to the optimization algorithm and a closed-form derivative cannot be obtained