60 return m_obj.eval(u).value();
63 mutable util::gsThreaded<gsMatrix<T> > jac;
69 m_obj.deriv_into(u, jac);
76 m_obj.hessian_into(u, jac);
void evalCon_into(const gsAsConstVector< T > &u, gsAsVector< T > &result) const
Returns values of the constraints at design value u.
Definition: gsFunctionAdaptor.h:80
Class defining an optimization problem.
Definition: gsOptProblem.h:24
int m_numConstraints
Number of constraints.
Definition: gsOptProblem.h:174
Creates a mapped object or data pointer to a matrix without copying data.
Definition: gsLinearAlgebra.h:126
T evalObj(const gsAsConstVector< T > &u) const
Returns the gradient value of the objective function at design value u.
Definition: gsFunctionAdaptor.h:56
Provides declaration of an optimization problem.
A function from a n-dimensional domain to an m-dimensional image.
Definition: gsFunction.h:59
gsVector< T > m_desUpperBounds
Upper bounds for the design variables.
Definition: gsOptProblem.h:183
gsFunctionAdaptor(const gsFunction< T > &obj)
Definition: gsFunctionAdaptor.h:35
Creates a mapped object or data pointer to a vector without copying data.
Definition: gsLinearAlgebra.h:129
int m_numDesignVars
Number of design variables.
Definition: gsOptProblem.h:171
Wrapper for thread-local data members.
void gradObj_into(const gsAsConstVector< T > &u, gsAsVector< T > &result) const
Returns the gradient of the objective function at design value u By default it uses finite difference...
Definition: gsFunctionAdaptor.h:64
virtual short_t domainDim() const =0
Dimension of the (source) domain.
void jacobCon_into(const gsAsConstVector< T > &u, gsAsVector< T > &result) const
Returns Jacobian of the constraints at design value u. Format of result is sparse, complying to m_conJacRows and m_conJacCols.
Definition: gsFunctionAdaptor.h:85
Creates a mapped object or data pointer to a const vector without copying data.
Definition: gsLinearAlgebra.h:130
gsVector< T > m_desLowerBounds
Lower bounds for the design variables.
Definition: gsOptProblem.h:180
Adaptor to see a given gsFunction as (the objective of) an unconstrained optimization problem...
Definition: gsFunctionAdaptor.h:30
int m_numConJacNonZero
Number of nonzero entries in the Constraint Jacobian.
Definition: gsOptProblem.h:177
gsMatrix< T > m_curDesign
Current design variables (and starting point )
Definition: gsOptProblem.h:198