Go to the documentation of this file.
9 #ifndef __IPITERATIVESOLVERTERMINATIONTESTER_HPP__
10 #define __IPITERATIVESOLVERTERMINATIONTESTER_HPP__
54 const std::string& prefix) = 0;
73 virtual void Clear() = 0;
const Journalist & GetJnlst() const
An easy way to get the journalist if accessed from the outside.
IpoptCalculatedQuantities & IpCq() const
@ TEST_1_SATISFIED
Termination Test 1 is satisfied.
@ OTHER_SATISFIED
Some other termination criterion satisfied.
@ MODIFY_HESSIAN
Hessian matrix should be modified.
const Journalist & Jnlst() const
@ TEST_2_SATISFIED
Termination Test 2 is satisfied.
virtual void Clear()=0
This method can be called after the Solve is over and we can delete anything that has been allocated ...
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...
Class to organize all the additional data required by the Chen-Goldfarb penalty function algorithm.
double Number
Type of all numbers.
IpoptData & IpData() const
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.
InexactData & InexData()
Method to easily access Inexact data.
IterativeSolverTerminationTester()
Default constructor.
int Index
Type of all indices of vectors, matrices etc.
IterativeSolverTerminationTester & operator=(const IterativeSolverTerminationTester &)
Overloaded Equals Operator.
@ TEST_3_SATISFIED
Termination Test 3 is satisfied.
Template class for Smart Pointers.
IpoptAdditionalData & AdditionalData()
Get access to additional data object.
virtual ~IterativeSolverTerminationTester()
Default destructor.
This base class is for the termination tests for the iterative linear solver in the inexact version o...
IpoptAdditionalCq & AdditionalCq()
Class responsible for all message output.
This is the base class for all algorithm strategy objects.
@ CONTINUE
The current solution is not yet good enough.
virtual bool InitializeSolve()=0
Method for initializing for the next iterative solve.
ETerminationTest
Enum to report result of termination test.
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.
This class stores a list of user set options.
InexactCq & InexCq()
Method to easily access Inexact calculated quantities.
Class for all Chen-Goldfarb penalty method specific calculated quantities.