23 template <
typename T>
class gsIpOptTNLP;
24 template <
typename T>
class gsIpOptPrivate;
35 friend class gsIpOptTNLP<T>;
53 gsWarn<<
"gsIpOpt.h has its options stored in filedata/options/ipopt.opt\n";
64 std::ostream &print(std::ostream &os)
const
66 os <<
"Design variables:" << m_op->numDesignVars()
67 <<
"\nNumber of constraints: " << m_op->numConstraints()
72 <<
"\nNumber of active sensitivities: " << m_op->numConJacNonZero()
73 <<
"\nSparsity of sensitivities: " <<std::fixed<<std::setprecision(2)
74 << (100.0*m_op->numConJacNonZero())/(m_op->numDesignVars()*m_op->numConstraints()) <<
" %"
93 using Base::m_numIterations;
94 using Base::m_finalObjective;
97 using Base::m_verbose;
98 using Base::m_maxIterations;
100 using Base::defaultOptions;
101 using Base::getOptions;
105 gsIpOptPrivate<T> * m_data;
129 #ifndef GISMO_BUILD_LIB
130 #include GISMO_HPP_HEADER(gsIpOpt.hpp)
Class defining an optimization problem.
Definition: gsOptProblem.h:24
gsIpOpt(gsOptProblem< T > *problem)
Definition: gsIpOpt.hpp:274
Class defining an optimizer.
Definition: gsOptimizer.h:27
gsOptionList m_options
Options.
Definition: gsOptimizer.h:108
Class defining an optimization problem.
Definition: gsIpOpt.h:30
gsMatrix< T > m_lambda
Lagrange multipliers (set in the finalize_solution method)
Definition: gsIpOpt.h:86
Provides declaration of an optimization problem.
This file is part of the G+Smo library.
virtual ~gsIpOpt()
Definition: gsIpOpt.hpp:268
#define gsWarn
Definition: gsDebug.h:50
This is the main header file that collects wrappers of Eigen for linear algebra.
gsMatrix< T > m_curDesign
Current design variables (and starting point )
Definition: gsOptimizer.h:105