9 #ifndef __IPITERATIVESOLVERTERMINATIONTESTER_HPP__
10 #define __IPITERATIVESOLVERTERMINATIONTESTER_HPP__
54 const std::string& prefix) = 0;
73 virtual void Clear() = 0;
virtual Index GetSolverIterations() const =0
Return the number of iterative solver iteration from the most recent solve.
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)=0
Implementation of the initialization method that has to be overloaded by for each derived class...
This base class is for the termination tests for the iterative linear solver in the inexact version o...
This is the base class for all algorithm strategy objects.
IterativeSolverTerminationTester()
Default constructor.
Hessian matrix should be modified.
double Number
Type of all numbers.
IpoptAdditionalCq & AdditionalCq()
Some other termination criterion satisfied.
virtual ETerminationTest TestTermination(Index ndim, const Number *sol, const Number *resid, Index iter, Number norm2_rhs)=0
This method checks if the current soltion of the iterative linear solver is good enough (by returning...
virtual void Clear()=0
This method can be called after the Solve is over and we can delete anything that has been allocated ...
Template class for Smart Pointers.
This class stores a list of user set options.
const Journalist & GetJnlst() const
An easy way to get the journalist if accessed from the outside.
InexactData & InexData()
Method to easily access Inexact data.
IpoptAdditionalData & AdditionalData()
Get access to additional data object.
virtual bool InitializeSolve()=0
Method for initializing for the next iterative solve.
IterativeSolverTerminationTester & operator=(const IterativeSolverTerminationTester &)
Overloaded Equals Operator.
int Index
Type of all indices of vectors, matrices etc.
void GetVectors(Index ndim, const Number *array, SmartPtr< const Vector > &comp_x, SmartPtr< const Vector > &comp_s, SmartPtr< const Vector > &comp_c, SmartPtr< const Vector > &comp_d)
Method for copying a long augmented system array into Vectors in Ipopt notation.
Termination Test 1 is satisfied.
The current solution is not yet good enough.
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Class to organize all the additional data required by the Chen-Goldfarb penalty function algorithm...
InexactCq & InexCq()
Method to easily access Inexact calculated quantities.
Termination Test 2 is satisfied.
Class responsible for all message output.
virtual ~IterativeSolverTerminationTester()
Default destructor.
IpoptData & IpData() const
IpoptCalculatedQuantities & IpCq() const
ETerminationTest
Enum to report result of termination test.
Termination Test 3 is satisfied.
const Journalist & Jnlst() const