This class collects statistics about an optimization run, such as iteration count, final infeasibilities etc. More...
#include <IpSolveStatistics.hpp>
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. | |
SolveStatistics (const SolveStatistics &) | |
Copy Constructor. | |
void | operator= (const SolveStatistics &) |
Default Assignment Operator. | |
Private Attributes | |
Fields for storing the statistics data | |
Index | num_iters_ |
Number of iterations. | |
Number | total_cpu_time_ |
Number | total_sys_time_ |
Number | total_wallclock_time_ |
Index | num_obj_evals_ |
Number of objective function evaluations. | |
Index | num_constr_evals_ |
Number of constraints evaluations (max of equality and inequality) | |
Index | num_obj_grad_evals_ |
Number of objective gradient evaluations. | |
Index | num_constr_jac_evals_ |
Number of constraint Jacobian evaluations. | |
Index | num_hess_evals_ |
Number of Lagrangian Hessian evaluations. | |
Number | scaled_obj_val_ |
Final scaled value of objective function. | |
Number | obj_val_ |
Final unscaled value of objective function. | |
Number | scaled_dual_inf_ |
Final scaled dual infeasibility (max-norm) | |
Number | dual_inf_ |
Final unscaled dual infeasibility (max-norm) | |
Number | scaled_constr_viol_ |
Final scaled constraint violation (max-norm) | |
Number | constr_viol_ |
Final unscaled constraint violation (max-norm) | |
Number | scaled_bound_viol_ |
Final scaled variable bound violation (max-norm) | |
Number | bound_viol_ |
Final unscaled variable bound violation (max-norm) | |
Number | scaled_compl_ |
Final scaled complementarity error (max-norm) | |
Number | compl_ |
Final unscaled complementarity error (max-norm) | |
Number | scaled_kkt_error_ |
Final overall scaled KKT error (max-norm) | |
Number | kkt_error_ |
Final overall unscaled KKT error (max-norm) | |
This class collects statistics about an optimization 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 46 of file IpSolveStatistics.hpp.
|
private |
Default Constructor.
|
private |
Copy Constructor.
Total CPU time, including function evaluations.
|
inline |
Total CPU time, including function evaluations.
Definition at line 63 of file IpSolveStatistics.hpp.
Total System time, including function evaluations.
Total wall clock time, including function evaluations.
|
virtual |
Number of NLP function evaluations.
|
virtual |
Unscaled solution infeasibilities.
|
virtual |
Unscaled solution infeasibilities.
dual_inf | dual infeasibility (Gradient of Lagrangian not zero) |
constr_viol | violation of constraints |
varbounds_viol | violation of variable bounds |
complementarity | violation of complementarity |
kkt_error | KKT error |
|
virtual |
Scaled solution infeasibilities.
|
virtual |
Scaled solution infeasibilities.
scaled_dual_inf | scaled dual infeasibility (Gradient of Lagrangian not zero) |
scaled_constr_viol | violation of scaled constraints |
scaled_varbounds_viol | violation of scaled variable bounds |
scaled_complementarity | violation of scaled complementarity |
scaled_kkt_error | scaled KKT error |
Final value of objective function.
Final scaled value of objective function.
|
private |
Default Assignment Operator.
|
private |
Number of iterations.
Definition at line 163 of file IpSolveStatistics.hpp.
|
private |
Definition at line 165 of file IpSolveStatistics.hpp.
|
private |
Definition at line 167 of file IpSolveStatistics.hpp.
|
private |
Definition at line 169 of file IpSolveStatistics.hpp.
|
private |
Number of objective function evaluations.
Definition at line 171 of file IpSolveStatistics.hpp.
|
private |
Number of constraints evaluations (max of equality and inequality)
Definition at line 173 of file IpSolveStatistics.hpp.
|
private |
Number of objective gradient evaluations.
Definition at line 175 of file IpSolveStatistics.hpp.
|
private |
Number of constraint Jacobian evaluations.
Definition at line 177 of file IpSolveStatistics.hpp.
|
private |
Number of Lagrangian Hessian evaluations.
Definition at line 179 of file IpSolveStatistics.hpp.
|
private |
Final scaled value of objective function.
Definition at line 182 of file IpSolveStatistics.hpp.
|
private |
Final unscaled value of objective function.
Definition at line 184 of file IpSolveStatistics.hpp.
|
private |
Final scaled dual infeasibility (max-norm)
Definition at line 186 of file IpSolveStatistics.hpp.
|
private |
Final unscaled dual infeasibility (max-norm)
Definition at line 188 of file IpSolveStatistics.hpp.
|
private |
Final scaled constraint violation (max-norm)
Definition at line 190 of file IpSolveStatistics.hpp.
|
private |
Final unscaled constraint violation (max-norm)
Definition at line 192 of file IpSolveStatistics.hpp.
|
private |
Final scaled variable bound violation (max-norm)
Definition at line 194 of file IpSolveStatistics.hpp.
|
private |
Final unscaled variable bound violation (max-norm)
Definition at line 196 of file IpSolveStatistics.hpp.
|
private |
Final scaled complementarity error (max-norm)
Definition at line 198 of file IpSolveStatistics.hpp.
|
private |
Final unscaled complementarity error (max-norm)
Definition at line 200 of file IpSolveStatistics.hpp.
|
private |
Final overall scaled KKT error (max-norm)
Definition at line 202 of file IpSolveStatistics.hpp.
|
private |
Final overall unscaled KKT error (max-norm)
Definition at line 204 of file IpSolveStatistics.hpp.