G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsOptimNM< T > Class Template Reference

Detailed Description

template<typename T>
class gismo::gsOptimNM< T >

Binding to Optim's NM solver.

Template Parameters
Treal type
+ Inheritance diagram for gsOptimNM< T >:
+ Collaboration diagram for gsOptimNM< T >:

Public Member Functions

bool callOptim (gsVector< T > &x, gsOptProblem< T > &op, optim::algo_settings_t &optimSettings) override
 See gsOptim.
 
void defaultOptions () override
 See gsOptim.
 
void getOptions () override
 See gsOptim.
 
 gsOptimNM (gsOptProblem< T > *problem)
 See gsOptim.
 
virtual bool intermediateCallback ()
 Callback function is executed after every iteration. Returning false causes premature termination of the optimization.
 
void setSimplexPoints (const gsMatrix< T > &points)
 
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

void setConstraints ()
 Sets the box constraints.
 

Protected Attributes

gsMatrix< T > m_curDesign
 Current design variables (and starting point )
 
gsOptionList m_options
 Options.
 

Member Function Documentation

static uPtr get ( const std::string &  slv,
gsOptProblem< T > *  problem 
)
inlinestaticinherited

Getter for a specific solver.

Parameters
[in]slvThe solver name
problemThe optimization problem
Returns
Pointer to the solver
void setSimplexPoints ( const gsMatrix< T > &  points)
inline

Initial simplex points From manual: user-defined values for the initial simplex (optional). Dimensions: (n+1) x n