![]() |
Prusa Slicer 2.6.0
|
Classes | |
| class | Bound |
| An interval of possible input values for optimization. More... | |
| class | DummyOptimizer |
| class | GeneticOptimizer |
| struct | limits |
| A Type trait for upper and lower limit of a numeric type. More... | |
| struct | limits< T, enable_if_t< std::numeric_limits< T >::has_infinity, void > > |
| class | metaloop |
| Helper class to be able to loop over a parameter pack's elements. More... | |
| class | NloptOptimizer |
| class | Optimizer |
| The Optimizer base class with CRTP pattern. More... | |
| struct | OptimizerSubclass |
| struct | OptimizerSubclass< Method::G_GENETIC > |
| struct | OptimizerSubclass< Method::L_SIMPLEX > |
| struct | OptimizerSubclass< Method::L_SUBPLEX > |
| struct | Result |
| A type to hold the complete result of the optimization. More... | |
| class | SimplexOptimizer |
| struct | StopCriteria |
| A type for specifying the stop criteria. More... | |
| class | SubplexOptimizer |
Typedefs | |
| template<class... Args> | |
| using | Input = tuple< Args... > |
| template<Method m> | |
| using | TOptimizer = typename OptimizerSubclass< m >::Type |
| Optimizer type based on the method provided in parameter m. | |
Enumerations | |
| enum class | Method { L_SIMPLEX , L_SUBPLEX , G_GENETIC , G_PARTICLE_SWARM } |
| Specific optimization methods for which a default optimizer implementation can be instantiated. More... | |
| enum | ResultCodes { FAILURE = -1 , INVALID_ARGS = -2 , OUT_OF_MEMORY = -3 , ROUNDOFF_LIMITED = -4 , FORCED_STOP = -5 , SUCCESS = 1 , STOPVAL_REACHED = 2 , FTOL_REACHED = 3 , XTOL_REACHED = 4 , MAXEVAL_REACHED = 5 , MAXTIME_REACHED = 6 } |
| Info about result of an optimization. These codes are exactly the same as the nlopt codes for convinience. More... | |
Functions | |
| template<class T > | |
| Bound< T > | bound (const T &min, const T &max) |
| template<class... Args> | |
| tuple< Args... > | initvals (Args...args) |
| template<Method m> | |
| TOptimizer< m > | GlobalOptimizer (Method, const StopCriteria &scr={}) |
| Global optimizer with an explicitly specified local method. | |
| template<> | |
| TOptimizer< Method::G_GENETIC > | GlobalOptimizer< Method::G_GENETIC > (Method localm, const StopCriteria &scr) |
| nlopt::algorithm | method2nloptAlg (Method m) |
| struct libnest2d::opt::OptimizerSubclass |
| Class Members | ||
|---|---|---|
| typedef DummyOptimizer<> | Type | |
| struct libnest2d::opt::OptimizerSubclass< Method::G_GENETIC > |
| Class Members | ||
|---|---|---|
| typedef GeneticOptimizer | Type | |
| struct libnest2d::opt::OptimizerSubclass< Method::L_SIMPLEX > |
| Class Members | ||
|---|---|---|
| typedef SimplexOptimizer | Type | |
| struct libnest2d::opt::OptimizerSubclass< Method::L_SUBPLEX > |
| Class Members | ||
|---|---|---|
| typedef SubplexOptimizer | Type | |
| struct libnest2d::opt::Result |
A type to hold the complete result of the optimization.
Collaboration diagram for libnest2d::opt::Result< Args >:| Class Members | ||
|---|---|---|
| tuple< Args... > | optimum | |
| ResultCodes | resultcode | |
| double | score | |
| struct libnest2d::opt::StopCriteria |
A type for specifying the stop criteria.
| using libnest2d::opt::Input = typedef tuple<Args...> |
This is the type of an input tuple for the object function. It holds the values and their type in each dimension.
| using libnest2d::opt::TOptimizer = typedef typename OptimizerSubclass<m>::Type |
Optimizer type based on the method provided in parameter m.
|
strong |
Info about result of an optimization. These codes are exactly the same as the nlopt codes for convinience.
| Enumerator | |
|---|---|
| FAILURE | |
| INVALID_ARGS | |
| OUT_OF_MEMORY | |
| ROUNDOFF_LIMITED | |
| FORCED_STOP | |
| SUCCESS | |
| STOPVAL_REACHED | |
| FTOL_REACHED | |
| XTOL_REACHED | |
| MAXEVAL_REACHED | |
| MAXTIME_REACHED | |
Helper function to make a Bound object with its type deduced automatically.
Referenced by libnest2d::placers::minimizeCircle().
Here is the caller graph for this function:
|
inline |
Global optimizer with an explicitly specified local method.
|
inline |
|
inline |
References initvals().
Referenced by libnest2d::findBestRotation(), initvals(), libnest2d::placers::minimizeCircle(), libnest2d::opt::NloptOptimizer::optimize(), libnest2d::opt::Optimizer< Subclass >::optimize_max(), libnest2d::opt::Optimizer< Subclass >::optimize_max(), libnest2d::opt::Optimizer< Subclass >::optimize_min(), and libnest2d::opt::Optimizer< Subclass >::optimize_min().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References G_GENETIC, L_SIMPLEX, and L_SUBPLEX.
Referenced by libnest2d::opt::NloptOptimizer::optimize().
Here is the caller graph for this function: