1#ifndef ROBOTOC_SOLVER_STATISTICS_HPP_
2#define ROBOTOC_SOLVER_STATISTICS_HPP_
46 std::vector<std::deque<double>>
ts;
72 void disp(std::ostream& os)
const;
Definition: constraint_component_base.hpp:17
Statistics of optimal control solvers.
Definition: solver_statistics.hpp:17
std::vector< std::deque< double > > ts
Switching times at each iteration.
Definition: solver_statistics.hpp:46
std::vector< double > dual_step_size
Dual step sizes at each iteration.
Definition: solver_statistics.hpp:41
double cpu_time
CPU time is stored if SolverOptions::enable_benchmark is true.
Definition: solver_statistics.hpp:56
std::vector< PerformanceIndex > performance_index
Performance measurements at each iteration.
Definition: solver_statistics.hpp:31
std::vector< double > primal_step_size
Primal step sizes at each iteration.
Definition: solver_statistics.hpp:36
std::vector< int > mesh_refinement_iter
Iterations where the mesh-refinements are carried out.
Definition: solver_statistics.hpp:51
void clear()
Clear the all elements.
bool convergence
Flags whether the convergence is achieved.
Definition: solver_statistics.hpp:21
int iter
Number of iterations until convergence.
Definition: solver_statistics.hpp:26
friend std::ostream & operator<<(std::ostream &os, const SolverStatistics &solver_statistics)
void reserve(const int size)
Reserves the data.
void disp(std::ostream &os) const
Displays the solver statistics onto a ostream.