Ipopt
3.12.12
|
This class implements the termination tests for the primal-dual system. More...
#include <IpInexactPDTerminationTester.hpp>
Public Member Functions | |
virtual bool | InitializeImpl (const OptionsList &options, const std::string &prefix) |
Implementation of the initialization method that has to be overloaded by for each derived class. More... | |
virtual bool | InitializeSolve () |
Method for initializing for the next iterative solve. More... | |
virtual ETerminationTest | TestTermination (Index ndim, const Number *sol, const Number *resid, Index iter, Number norm2_rhs) |
This method checks if the current soltion of the iterative linear solver is good enough (by returning the corresponding satisfied termination test), or if the Hessian should be modified. More... | |
virtual void | Clear () |
This method can be called after the Solve is over and we can delete anything that has been allocated to free memory. More... | |
virtual Index | GetSolverIterations () const |
Return the number of iterative solver iteration from the most recent solve. More... | |
/Destructor | |
InexactPDTerminationTester () | |
Default constructor. More... | |
virtual | ~InexactPDTerminationTester () |
Default destructor. More... | |
![]() | |
const Journalist & | GetJnlst () const |
An easy way to get the journalist if accessed from the outside. More... | |
IterativeSolverTerminationTester () | |
Default constructor. More... | |
virtual | ~IterativeSolverTerminationTester () |
Default destructor. More... | |
![]() | |
bool | Initialize (const Journalist &jnlst, IpoptNLP &ip_nlp, IpoptData &ip_data, IpoptCalculatedQuantities &ip_cq, const OptionsList &options, const std::string &prefix) |
This method is called every time the algorithm starts again - it is used to reset any internal state. More... | |
bool | ReducedInitialize (const Journalist &jnlst, const OptionsList &options, const std::string &prefix) |
Reduced version of the Initialize method, which does not require special Ipopt information. More... | |
AlgorithmStrategyObject () | |
Default Constructor. More... | |
virtual | ~AlgorithmStrategyObject () |
Default Destructor. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Static Public Member Functions | |
static void | RegisterOptions (SmartPtr< RegisteredOptions > roptions) |
Methods for IpoptType. More... | |
Private Member Functions | |
Default Compiler Generated Methods | |
(Hidden to avoid implicit creation/calling). These methods are not implemented and we do not want the compiler to implement them for us, so we declare them private and do not define them. This ensures that they will not be implicitly created/called. | |
InexactPDTerminationTester & | operator= (const InexactPDTerminationTester &) |
Overloaded Equals Operator. More... | |
Private Attributes | |
Index | last_iter_ |
Last iterative solver iteration counter. More... | |
Algorithmic options | |
Number | tcc_psi_ |
Psi factor in the tangential component condition. More... | |
Number | tcc_theta_ |
theta factor in the tangential component condition More... | |
Number | tcc_theta_mu_exponent_ |
mu exponent when multiplied to theta in the tangential component condition More... | |
Number | tcc_zeta_ |
zeta factor in the tangential component condition More... | |
Number | tt_kappa1_ |
kappa_1 factor in termination test 1 More... | |
Number | tt_kappa2_ |
kappa_2 factor in termination test 2 More... | |
Number | tt_eps2_ |
eps_2 constant in termination test 2 More... | |
Number | tt_eps3_ |
eps_3 constant in termination test 3 More... | |
Number | rho_ |
rho constant from penalty parameter update. More... | |
Number | inexact_desired_pd_residual_ |
Desired reduction of residual. More... | |
Index | inexact_desired_pd_residual_iter_ |
Number of iterations allowed for desired pd residual. More... | |
bool | requires_scaling_ |
Is set to true if the linear system is scaled via slacks. More... | |
Quantities that are identical for all tests and can be | |
precomputed | |
SmartPtr< const Vector > | curr_Av_c_ |
SmartPtr< const Vector > | curr_Av_d_ |
Number | c_norm_ |
Number | c_plus_Av_norm_ |
Number | v_norm_scaled_ |
SmartPtr< const Vector > | curr_grad_barrier_obj_x_ |
SmartPtr< const Vector > | curr_grad_barrier_obj_s_ |
SmartPtr< const Matrix > | curr_jac_c_ |
SmartPtr< const Matrix > | curr_jac_d_ |
SmartPtr< const Vector > | curr_scaling_slacks_ |
SmartPtr< Vector > | curr_nabla_phi_plus_ATy_x_ |
SmartPtr< Vector > | curr_nabla_phi_plus_ATy_s_ |
Number | curr_Av_norm_ |
Number | curr_tt1_norm_ |
Number | curr_tt2_norm_ |
SmartPtr< const Vector > | curr_Wv_x_ |
SmartPtr< const Vector > | curr_Wv_s_ |
bool | try_tt2_ |
Quantities from previous iteration required in the | |
tests | |
Number | last_Av_norm_ |
Number | last_tt1_norm_ |
Additional Inherited Members | |
![]() | |
enum | ETerminationTest { CONTINUE, TEST_1_SATISFIED, TEST_2_SATISFIED, TEST_3_SATISFIED, MODIFY_HESSIAN, OTHER_SATISFIED } |
Enum to report result of termination test. More... | |
![]() | |
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. More... | |
InexactData & | InexData () |
Method to easily access Inexact data. More... | |
InexactCq & | InexCq () |
Method to easily access Inexact calculated quantities. More... | |
![]() | |
const Journalist & | Jnlst () const |
IpoptNLP & | IpNLP () const |
IpoptData & | IpData () const |
IpoptCalculatedQuantities & | IpCq () const |
bool | HaveIpData () const |
This class implements the termination tests for the primal-dual system.
Definition at line 20 of file IpInexactPDTerminationTester.hpp.
Ipopt::InexactPDTerminationTester::InexactPDTerminationTester | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
virtual |
Implementation of the initialization method that has to be overloaded by for each derived class.
Implements Ipopt::IterativeSolverTerminationTester.
|
static |
Methods for IpoptType.
|
virtual |
Method for initializing for the next iterative solve.
This must be call before the test methods are called.
Implements Ipopt::IterativeSolverTerminationTester.
|
virtual |
This method checks if the current soltion of the iterative linear solver is good enough (by returning the corresponding satisfied termination test), or if the Hessian should be modified.
The input is the dimension of the augmented system, the current solution vector of the augmented system, the current residual vector.
Implements Ipopt::IterativeSolverTerminationTester.
|
virtual |
This method can be called after the Solve is over and we can delete anything that has been allocated to free memory.
Implements Ipopt::IterativeSolverTerminationTester.
|
inlinevirtual |
Return the number of iterative solver iteration from the most recent solve.
Implements Ipopt::IterativeSolverTerminationTester.
Definition at line 62 of file IpInexactPDTerminationTester.hpp.
|
private |
Overloaded Equals Operator.
|
private |
Psi factor in the tangential component condition.
Definition at line 83 of file IpInexactPDTerminationTester.hpp.
|
private |
theta factor in the tangential component condition
Definition at line 85 of file IpInexactPDTerminationTester.hpp.
|
private |
mu exponent when multiplied to theta in the tangential component condition
Definition at line 88 of file IpInexactPDTerminationTester.hpp.
|
private |
zeta factor in the tangential component condition
Definition at line 90 of file IpInexactPDTerminationTester.hpp.
|
private |
kappa_1 factor in termination test 1
Definition at line 92 of file IpInexactPDTerminationTester.hpp.
|
private |
kappa_2 factor in termination test 2
Definition at line 94 of file IpInexactPDTerminationTester.hpp.
|
private |
eps_2 constant in termination test 2
Definition at line 96 of file IpInexactPDTerminationTester.hpp.
|
private |
eps_3 constant in termination test 3
Definition at line 98 of file IpInexactPDTerminationTester.hpp.
|
private |
rho constant from penalty parameter update.
This is called in MIPS paper
Definition at line 101 of file IpInexactPDTerminationTester.hpp.
|
private |
Desired reduction of residual.
Definition at line 103 of file IpInexactPDTerminationTester.hpp.
|
private |
Number of iterations allowed for desired pd residual.
Definition at line 105 of file IpInexactPDTerminationTester.hpp.
|
private |
Is set to true if the linear system is scaled via slacks.
Definition at line 107 of file IpInexactPDTerminationTester.hpp.
Definition at line 113 of file IpInexactPDTerminationTester.hpp.
Definition at line 114 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 115 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 116 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 117 of file IpInexactPDTerminationTester.hpp.
Definition at line 118 of file IpInexactPDTerminationTester.hpp.
Definition at line 119 of file IpInexactPDTerminationTester.hpp.
Definition at line 120 of file IpInexactPDTerminationTester.hpp.
Definition at line 121 of file IpInexactPDTerminationTester.hpp.
Definition at line 122 of file IpInexactPDTerminationTester.hpp.
Definition at line 123 of file IpInexactPDTerminationTester.hpp.
Definition at line 124 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 125 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 126 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 127 of file IpInexactPDTerminationTester.hpp.
Definition at line 128 of file IpInexactPDTerminationTester.hpp.
Definition at line 129 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 130 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 136 of file IpInexactPDTerminationTester.hpp.
|
private |
Definition at line 137 of file IpInexactPDTerminationTester.hpp.
|
private |
Last iterative solver iteration counter.
Definition at line 141 of file IpInexactPDTerminationTester.hpp.