Ipopt
3.12.12
|
This class collects statistics about an optimziation run, such as iteration count, final infeasibilities etc. More...
#include <IpSolveStatistics.hpp>
Public Member Functions | |
Constructors/Destructors | |
SolveStatistics (const SmartPtr< IpoptNLP > &ip_nlp, const SmartPtr< IpoptData > &ip_data, const SmartPtr< IpoptCalculatedQuantities > &ip_cq) | |
Default constructor. More... | |
virtual | ~SolveStatistics () |
Default destructor. More... | |
Accessor methods for retrieving different kind of solver | |
statistics information | |
virtual Index | IterationCount () const |
Iteration counts. More... | |
virtual Number | TotalCpuTime () const |
Total CPU time, including function evaluations. More... | |
Number | TotalCPUTime () const |
Total CPU time, including function evaluations. More... | |
virtual Number | TotalSysTime () const |
Total System time, including function evaluations. More... | |
virtual Number | TotalWallclockTime () const |
Total wall clock time, including function evaluations. More... | |
virtual void | NumberOfEvaluations (Index &num_obj_evals, Index &num_constr_evals, Index &num_obj_grad_evals, Index &num_constr_jac_evals, Index &num_hess_evals) const |
Number of NLP function evaluations. More... | |
virtual void | Infeasibilities (Number &dual_inf, Number &constr_viol, Number &complementarity, Number &kkt_error) const |
Unscaled solution infeasibilities. More... | |
virtual void | ScaledInfeasibilities (Number &scaled_dual_inf, Number &scaled_constr_viol, Number &scaled_complementarity, Number &scaled_kkt_error) const |
Scaled solution infeasibilities. More... | |
virtual Number | FinalObjective () const |
Final value of objective function. More... | |
virtual Number | FinalScaledObjective () const |
Final scaled value of objective function. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
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. | |
SolveStatistics () | |
Default Constructor. More... | |
SolveStatistics (const SolveStatistics &) | |
Copy Constructor. More... | |
void | operator= (const SolveStatistics &) |
Overloaded Equals Operator. More... | |
Private Attributes | |
Fields for storing the statistics data | |
Index | num_iters_ |
Number of iterations. More... | |
Number | total_cpu_time_ |
Number | total_sys_time_ |
Number | total_wallclock_time_ |
Index | num_obj_evals_ |
Number of objective function evaluations. More... | |
Index | num_constr_evals_ |
Number of constraints evaluations (max of equality and inequality) More... | |
Index | num_obj_grad_evals_ |
Number of objective gradient evaluations. More... | |
Index | num_constr_jac_evals_ |
Number of constraint Jacobian evaluations. More... | |
Index | num_hess_evals_ |
Number of Lagrangian Hessian evaluations. More... | |
Number | scaled_obj_val_ |
Final scaled value of objective function. More... | |
Number | obj_val_ |
Final unscaled value of objective function. More... | |
Number | scaled_dual_inf_ |
Final scaled dual infeasibility (max-norm) More... | |
Number | dual_inf_ |
Final unscaled dual infeasibility (max-norm) More... | |
Number | scaled_constr_viol_ |
Final scaled constraint violation (max-norm) More... | |
Number | constr_viol_ |
Final unscaled constraint violation (max-norm) More... | |
Number | scaled_compl_ |
Final scaled complementarity error (max-norm) More... | |
Number | compl_ |
Final unscaled complementarity error (max-norm) More... | |
Number | scaled_kkt_error_ |
Final overall scaled KKT error (max-norm) More... | |
Number | kkt_error_ |
Final overall unscaled KKT error (max-norm) More... | |
This class collects statistics about an optimziation run, such as iteration count, final infeasibilities etc.
It is meant to provide such information to a user of Ipopt during the finalize_solution call.
Definition at line 27 of file IpSolveStatistics.hpp.
Ipopt::SolveStatistics::SolveStatistics | ( | const SmartPtr< IpoptNLP > & | ip_nlp, |
const SmartPtr< IpoptData > & | ip_data, | ||
const SmartPtr< IpoptCalculatedQuantities > & | ip_cq | ||
) |
Default constructor.
It takes in those collecting Ipopt objects that can provide the statistics information. Those statistics are retrieved at the time of the constructor call.
|
inlinevirtual |
Default destructor.
Definition at line 41 of file IpSolveStatistics.hpp.
|
private |
Default Constructor.
|
private |
Copy Constructor.
|
virtual |
Iteration counts.
|
virtual |
Total CPU time, including function evaluations.
|
inline |
Total CPU time, including function evaluations.
Included for backward compatibility.
Definition at line 54 of file IpSolveStatistics.hpp.
|
virtual |
Total System time, including function evaluations.
|
virtual |
Total wall clock time, including function evaluations.
|
virtual |
Number of NLP function evaluations.
|
virtual |
Unscaled solution infeasibilities.
|
virtual |
Scaled solution infeasibilities.
|
virtual |
Final value of objective function.
|
virtual |
Final scaled value of objective function.
|
private |
Overloaded Equals Operator.
|
private |
Number of iterations.
Definition at line 106 of file IpSolveStatistics.hpp.
|
private |
Definition at line 108 of file IpSolveStatistics.hpp.
|
private |
Definition at line 110 of file IpSolveStatistics.hpp.
|
private |
Definition at line 112 of file IpSolveStatistics.hpp.
|
private |
Number of objective function evaluations.
Definition at line 114 of file IpSolveStatistics.hpp.
|
private |
Number of constraints evaluations (max of equality and inequality)
Definition at line 117 of file IpSolveStatistics.hpp.
|
private |
Number of objective gradient evaluations.
Definition at line 119 of file IpSolveStatistics.hpp.
|
private |
Number of constraint Jacobian evaluations.
Definition at line 121 of file IpSolveStatistics.hpp.
|
private |
Number of Lagrangian Hessian evaluations.
Definition at line 123 of file IpSolveStatistics.hpp.
|
private |
Final scaled value of objective function.
Definition at line 126 of file IpSolveStatistics.hpp.
|
private |
Final unscaled value of objective function.
Definition at line 128 of file IpSolveStatistics.hpp.
|
private |
Final scaled dual infeasibility (max-norm)
Definition at line 130 of file IpSolveStatistics.hpp.
|
private |
Final unscaled dual infeasibility (max-norm)
Definition at line 132 of file IpSolveStatistics.hpp.
|
private |
Final scaled constraint violation (max-norm)
Definition at line 134 of file IpSolveStatistics.hpp.
|
private |
Final unscaled constraint violation (max-norm)
Definition at line 136 of file IpSolveStatistics.hpp.
|
private |
Final scaled complementarity error (max-norm)
Definition at line 138 of file IpSolveStatistics.hpp.
|
private |
Final unscaled complementarity error (max-norm)
Definition at line 140 of file IpSolveStatistics.hpp.
|
private |
Final overall scaled KKT error (max-norm)
Definition at line 142 of file IpSolveStatistics.hpp.
|
private |
Final overall unscaled KKT error (max-norm)
Definition at line 144 of file IpSolveStatistics.hpp.