7#ifndef __IPSOLVESTATISTICS_HPP__
8#define __IPSOLVESTATISTICS_HPP__
20class IpoptCalculatedQuantities;
65 return TotalCpuTime();
#define IPOPT_DEPRECATED
macro to declare symbols as deprecated
Templated class which stores one entry for the CachedResult class.
Storing the reference count of all the smart pointers that currently reference it.
This class collects statistics about an optimization run, such as iteration count,...
Index num_constr_evals_
Number of constraints evaluations (max of equality and inequality)
Number total_wallclock_time_
Number scaled_kkt_error_
Final overall scaled KKT error (max-norm)
Number scaled_obj_val_
Final scaled value of objective function.
Number obj_val_
Final unscaled value of objective function.
SolveStatistics()
Default Constructor.
Number scaled_constr_viol_
Final scaled constraint violation (max-norm)
Number kkt_error_
Final overall unscaled KKT error (max-norm)
SolveStatistics(const SmartPtr< IpoptNLP > &ip_nlp, const SmartPtr< IpoptData > &ip_data, const SmartPtr< IpoptCalculatedQuantities > &ip_cq)
Default constructor.
Number constr_viol_
Final unscaled constraint violation (max-norm)
Number scaled_dual_inf_
Final scaled dual infeasibility (max-norm)
Number dual_inf_
Final unscaled dual infeasibility (max-norm)
virtual IPOPT_DEPRECATED void ScaledInfeasibilities(Number &scaled_dual_inf, Number &scaled_constr_viol, Number &scaled_complementarity, Number &scaled_kkt_error) const
Scaled solution infeasibilities.
virtual Number FinalScaledObjective() const
Final scaled value of objective function.
void operator=(const SolveStatistics &)
Default Assignment Operator.
Index num_constr_jac_evals_
Number of constraint Jacobian evaluations.
Number scaled_compl_
Final scaled complementarity error (max-norm)
IPOPT_DEPRECATED Number TotalCPUTime() const
Total CPU time, including function evaluations.
virtual Number TotalSysTime() const
Total System time, including function evaluations.
virtual void Infeasibilities(Number &dual_inf, Number &constr_viol, Number &varbounds_viol, Number &complementarity, Number &kkt_error) const
Unscaled solution infeasibilities.
Number scaled_bound_viol_
Final scaled variable bound violation (max-norm)
virtual Number TotalCpuTime() const
Total CPU time, including function evaluations.
Number compl_
Final unscaled complementarity error (max-norm)
Number bound_viol_
Final unscaled variable bound violation (max-norm)
virtual Number TotalWallclockTime() const
Total wall clock time, including function evaluations.
virtual IPOPT_DEPRECATED void Infeasibilities(Number &dual_inf, Number &constr_viol, Number &complementarity, Number &kkt_error) const
Unscaled solution infeasibilities.
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.
Index num_obj_evals_
Number of objective function evaluations.
Index num_iters_
Number of iterations.
virtual Number FinalObjective() const
Final value of objective function.
Index num_hess_evals_
Number of Lagrangian Hessian evaluations.
virtual ~SolveStatistics()
Default destructor.
virtual void ScaledInfeasibilities(Number &scaled_dual_inf, Number &scaled_constr_viol, Number &scaled_varbounds_viol, Number &scaled_complementarity, Number &scaled_kkt_error) const
Scaled solution infeasibilities.
Index num_obj_grad_evals_
Number of objective gradient evaluations.
SolveStatistics(const SolveStatistics &)
Copy Constructor.
virtual Index IterationCount() const
Iteration counts.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
ipindex Index
Type of all indices of vectors, matrices etc.
ipnumber Number
Type of all numbers.