| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHsolvmin.h>


Public Member Functions | |
| ChOptimizerHybrid () | |
| virtual void | Copy (ChOptimizerHybrid *source) |
| virtual void | SetObjective (ChFx *mformula) |
| virtual void | SetObjectiveGrad (ChFx *mformula) |
| void | SetNumOfVars (int mv) |
| virtual int | DoOptimize () |
Public Attributes | |
| ChOptimizerGenetic * | genetic_opt |
| ChOptimizerLocal * | local_opt |
| int | current_phase |
| bool | use_genetic |
| bool | use_local |
Inherited class for genetic optimization followed by a refinement with the method of gradient, one after the other. Parameters must be set for the two incapsulated optimizers genetic_opt and gradient_opt, that is for example: my_hybrid->genetic_opt->maxgenerations = 200; etc... However, the optimization variables, the system and the objective function must be added to the hybrid optimizer itself, which in turn will automatically set them for the genetic_opt and gradient_opt.
| chrono::ChOptimizerHybrid::ChOptimizerHybrid | ( | ) |
Ch_hybrid_optimizer Hybrid (genetic+local) optimization engine
| void chrono::ChOptimizerHybrid::SetNumOfVars | ( | int | mv | ) | [virtual] |
Set the number of optimization variables. Note: this must be set properly as the number of variables used in the objective function!
Reimplemented from chrono::ChOptimizer.
| void chrono::ChOptimizerHybrid::SetObjectiveGrad | ( | ChFx * | mformula | ) | [virtual] |
Sets the objective function gradient (not mandatory, because if not set, the default bacward differentiation is used).
Reimplemented from chrono::ChOptimizer.
CHRONO::ENGINE