ScsEigen::Solver class

Solver class is a wrapper of the scs library. This is the main class that you should use when you want to solve a convex optimization problem. This example can be used as a reference to solve a QP problem.

Constructors, destructors, conversion operators

Solver()
Constructor.
~Solver()
Destructor.

Public functions

auto settings() -> Settings&
Access to the ScsEigen::Settings object.
auto settings() const -> const Settings&
Access to the ScsEigen::Settings object.
auto mathematicalProgram() -> MathematicalProgram&
Access to the ScsEigen::MathematicalProgram object.
auto mathematicalProgram() const -> const MathematicalProgram&
Access to the ScsEigen::MathematicalProgram object.
auto solve() -> bool
Solve the optimization problem described in MathematicalProgram class.
auto solution() const -> const Solution&
Access to ScsEigen::Solution object.

Function documentation

bool ScsEigen::Solver::solve()

Solve the optimization problem described in MathematicalProgram class.

Returns true in case of success/false otherwise.