MFEM  v4.6.0
Finite element discretization library
Public Member Functions | List of all members
mfem::HiOpProblem Class Reference

Users can inherit this class to access to HiOp-specific functionality. More...

#include <hiop.hpp>

Inheritance diagram for mfem::HiOpProblem:
[legend]
Collaboration diagram for mfem::HiOpProblem:
[legend]

Public Member Functions

 HiOpProblem (int insize, const Operator *C_, const Operator *D_)
 
virtual void SolutionCallback (hiop::hiopSolveStatus status, hiop::size_type n, const double *x, const double *z_L, const double *z_U, hiop::size_type m, const double *g, const double *lambda, double obj_value) const
 See hiopInterfaceBase::solution_callback(...). More...
 
virtual bool IterateCallback (int iter, double obj_value, double logbar_obj_value, int n, const double *x, const double *z_L, const double *z_U, int m_ineq, const double *s, int m, const double *g, const double *lambda, double inf_pr, double inf_du, double onenorm_pr_, double mu, double alpha_du, double alpha_pr, int ls_trials) const
 See hiopInterfaceBase::iterate_callback(...). More...
 
- Public Member Functions inherited from mfem::OptimizationProblem
 OptimizationProblem (int insize, const Operator *C_, const Operator *D_)
 In parallel, insize is the number of the local true dofs. More...
 
virtual double CalcObjective (const Vector &x) const =0
 Objective F(x). In parallel, the result should be reduced over tasks. More...
 
virtual void CalcObjectiveGrad (const Vector &x, Vector &grad) const
 The result grad is expected to enter with the correct size. More...
 
void SetEqualityConstraint (const Vector &c)
 
void SetInequalityConstraint (const Vector &dl, const Vector &dh)
 
void SetSolutionBounds (const Vector &xl, const Vector &xh)
 
const OperatorGetC () const
 
const OperatorGetD () const
 
const VectorGetEqualityVec () const
 
const VectorGetInequalityVec_Lo () const
 
const VectorGetInequalityVec_Hi () const
 
const VectorGetBoundsVec_Lo () const
 
const VectorGetBoundsVec_Hi () const
 
int GetNumConstraints () const
 

Additional Inherited Members

- Public Attributes inherited from mfem::OptimizationProblem
const int input_size
 
- Protected Member Functions inherited from mfem::OptimizationProblem
bool NewX () const
 
- Protected Attributes inherited from mfem::OptimizationProblem
const OperatorC
 Not owned, some can remain unused (NULL). More...
 
const OperatorD
 
const Vectorc_e
 
const Vectord_lo
 
const Vectord_hi
 
const Vectorx_lo
 
const Vectorx_hi
 

Detailed Description

Users can inherit this class to access to HiOp-specific functionality.

Definition at line 210 of file hiop.hpp.

Constructor & Destructor Documentation

◆ HiOpProblem()

mfem::HiOpProblem::HiOpProblem ( int  insize,
const Operator C_,
const Operator D_ 
)
inline

Definition at line 213 of file hiop.hpp.

Member Function Documentation

◆ IterateCallback()

virtual bool mfem::HiOpProblem::IterateCallback ( int  iter,
double  obj_value,
double  logbar_obj_value,
int  n,
const double *  x,
const double *  z_L,
const double *  z_U,
int  m_ineq,
const double *  s,
int  m,
const double *  g,
const double *  lambda,
double  inf_pr,
double  inf_du,
double  onenorm_pr_,
double  mu,
double  alpha_du,
double  alpha_pr,
int  ls_trials 
) const
inlinevirtual

See hiopInterfaceBase::iterate_callback(...).

Definition at line 229 of file hiop.hpp.

◆ SolutionCallback()

virtual void mfem::HiOpProblem::SolutionCallback ( hiop::hiopSolveStatus  status,
hiop::size_type  n,
const double *  x,
const double *  z_L,
const double *  z_U,
hiop::size_type  m,
const double *  g,
const double *  lambda,
double  obj_value 
) const
inlinevirtual

See hiopInterfaceBase::solution_callback(...).

Definition at line 217 of file hiop.hpp.


The documentation for this class was generated from the following file: