![]() |
Prusa Slicer 2.6.0
|
#include <src/libnest2d/include/libnest2d/optimizers/nlopt/genetic.hpp>
Inheritance diagram for libnest2d::opt::GeneticOptimizer:
Collaboration diagram for libnest2d::opt::GeneticOptimizer:Public Member Functions | |
| GeneticOptimizer (const StopCriteria &scr={}) | |
| GeneticOptimizer & | localMethod (Method m) |
| void | seed (unsigned long val) |
| Result< Args... > | optimize_min (Func &&objectfunction, Input< Args... > initvals, Bound< Args >... bounds) |
| Optimize for minimum value of the provided objectfunction. | |
| Result< Args... > | optimize_min (Func &&objectfunction, Input< Args... > initvals) |
| Result< Args... > | optimize_min (Func &&objectfunction) |
| Result< Args... > | optimize_max (Func &&objectfunction, Input< Args... > initvals, Bound< Args >... bounds) |
| Same as optimize_min but optimizes for maximum function value. | |
| Result< Args... > | optimize_max (Func &&objectfunction, Input< Args... > initvals) |
| Result< Args... > | optimize_max (Func &&objectfunction) |
Protected Types | |
| using | Base = Optimizer< NloptOptimizer > |
| enum | OptDir |
Protected Member Functions | |
| template<class Func , class... Args> | |
| Result< Args... > | optimize (Func &&func, std::tuple< Args... > initvals, Bound< Args >... args) |
Static Protected Member Functions | |
| template<class Fn , class... Args> | |
| static double | optfunc (const std::vector< double > ¶ms, std::vector< double > &, void *data) |
Protected Attributes | |
| friend | Base |
| nlopt::opt | opt_ |
| std::vector< double > | lower_bounds_ |
| std::vector< double > | upper_bounds_ |
| std::vector< double > | initvals_ |
| nlopt::algorithm | alg_ |
| Method | localmethod_ |
| enum libnest2d::opt::Optimizer::OptDir | dir_ |
| StopCriteria | stopcr_ |
|
protectedinherited |
|
strongprotectedinherited |
|
inlineexplicit |
|
inline |
References libnest2d::opt::NloptOptimizer::localmethod_.
|
inlinestaticprotectedinherited |
References libnest2d::opt::metaloop::apply(), libnest2d::opt::metaloop::callFunWithTuple(), and libnest2d::opt::NloptOptimizer::opt_.
Here is the call graph for this function:
|
inlineprotectedinherited |
References libnest2d::opt::StopCriteria::absolute_score_difference, libnest2d::opt::NloptOptimizer::alg_, libnest2d::opt::metaloop::apply(), libnest2d::opt::Optimizer< NloptOptimizer >::dir_, libnest2d::opt::FORCED_STOP, libnest2d::opt::initvals(), libnest2d::opt::NloptOptimizer::initvals_, libnest2d::opt::NloptOptimizer::localmethod_, libnest2d::opt::NloptOptimizer::lower_bounds_, libnest2d::opt::StopCriteria::max_iterations, libnest2d::opt::method2nloptAlg(), libnest2d::opt::NloptOptimizer::opt_, libnest2d::opt::StopCriteria::relative_score_difference, libnest2d::opt::StopCriteria::stop_score, libnest2d::opt::Optimizer< NloptOptimizer >::stopcr_, and libnest2d::opt::NloptOptimizer::upper_bounds_.
Here is the call graph for this function:
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Same as optimize_min but optimizes for maximum function value.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Optimize for minimum value of the provided objectfunction.
| objectfunction | The function that will be searched for the minimum return value. |
| initvals | A tuple with the initial values for the search |
| bounds | A parameter pack with the bounds for each dimension. |
|
protectedinherited |
Referenced by libnest2d::opt::NloptOptimizer::optimize().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by localMethod(), and libnest2d::opt::NloptOptimizer::optimize().
|
protectedinherited |
|
protectedinherited |
Referenced by libnest2d::opt::NloptOptimizer::optfunc(), and libnest2d::opt::NloptOptimizer::optimize().
|
protectedinherited |
|
protectedinherited |