G+Smo
24.08.0
Geometry + Simulation Modules
|
Base class for the Optim wrapper.
T | real type |
Public Member Functions | |
virtual void | defaultOptions () |
Default options. | |
virtual void | getOptions () |
Options getter. | |
gsOptim () | |
Empty constructor. | |
gsOptim (gsOptProblem< T > *problem) | |
Constructor with a gsOptProblem. More... | |
virtual bool | intermediateCallback () |
Callback function is executed after every iteration. Returning false causes premature termination of the optimization. | |
virtual void | solve (const gsMatrix< T > &initialGuess) |
Solve, see gsOptimizer. | |
bool | success () |
Function returning true when optimization was successful. | |
Static Public Member Functions | |
static uPtr | get (const std::string &slv, gsOptProblem< T > *problem) |
Getter for a specific solver. More... | |
Protected Member Functions | |
virtual bool | callOptim (gsVector< T > &initialGuess, gsOptProblem< T > &op, optim::algo_settings_t &settings)=0 |
Misc function to call optim. | |
void | setConstraints () |
Sets the box constraints. | |
Protected Attributes | |
gsMatrix< T > | m_curDesign |
Current design variables (and starting point ) | |
gsOptionList | m_options |
Options. | |
|
inline |
Constructor with a gsOptProblem.
problem | The optimization problem, see gsOptProblem |
|
inlinestatic |
Getter for a specific solver.
[in] | slv | The solver name |
problem | The optimization problem |