OsqpSolverDetails Struct Reference

Detailed Description

The OSQP solver details after calling Solve() function.

The user can call MathematicalProgramResult::get_solver_details<OsqpSolver>() to obtain the details.

#include <drake/solvers/osqp_solver.h>

Public Attributes

int iter {}
 Number of iterations taken. More...
int status_val {}
 Status of the solver at termination. More...
double primal_res {}
 Norm of primal residue. More...
double dual_res {}
 Norm of dual residue. More...
double setup_time {}
 Time taken for setup phase (seconds). More...
double solve_time {}
 Time taken for solve phase (seconds). More...
double polish_time {}
 Time taken for polish phase (seconds). More...
double run_time {}
 Total OSQP time (seconds). More...
Eigen::VectorXd y {}
 y contains the solution for the Lagrangian multiplier associated with l <= Ax <= u. More...

Member Data Documentation

◆ dual_res

double dual_res {}

Norm of dual residue.

◆ iter

int iter {}

Number of iterations taken.

◆ polish_time

double polish_time {}

Time taken for polish phase (seconds).

◆ primal_res

double primal_res {}

Norm of primal residue.

◆ run_time

double run_time {}

Total OSQP time (seconds).

◆ setup_time

double setup_time {}

Time taken for setup phase (seconds).

◆ solve_time

double solve_time {}

Time taken for solve phase (seconds).

◆ status_val

int status_val {}

Status of the solver at termination.

Please refer to https://github.com/oxfordcontrol/osqp/blob/master/include/constants.h

◆ y

Eigen::VectorXd y {}

y contains the solution for the Lagrangian multiplier associated with l <= Ax <= u.

The Lagrangian multiplier is set only when OSQP solves the problem. Notice that the order of the linear constraints are linear inequality first, and then linear equality constraints.

The documentation for this struct was generated from the following file: