COPP C++ API
C++ interface for COPP trajectory optimization
Loading...
Searching...
No Matches
copp::solver::copp2_socp Namespace Reference

Second-order convex-objective Clarabel SOCP backend with normal profile-returning APIs and expert diagnostic results. More...

Classes

class  Problem
 COPP2-SOCP problem descriptor. More...
struct  Result
 Expert COPP2-SOCP result with raw Clarabel diagnostics. More...

Functions

COPP_API std::vector< double > solve (const Problem &problem, const clarabel::Options &options={})
 Solve COPP2-SOCP and return an accepted node profile a(s).
Expected< std::vector< double > > solve (const Problem &problem, const clarabel::Options &options, NoThrowTag)
Expected< std::vector< double > > solve (const Problem &problem, NoThrowTag tag)
COPP_API Result solve_expert (const Problem &problem, const clarabel::Options &options={})
 Solve COPP2-SOCP and always return Clarabel diagnostics.
Expected< Resultsolve_expert (const Problem &problem, const clarabel::Options &options, NoThrowTag)
Expected< Resultsolve_expert (const Problem &problem, NoThrowTag tag)

Detailed Description

Second-order convex-objective Clarabel SOCP backend with normal profile-returning APIs and expert diagnostic results.

Function Documentation

◆ solve() [1/3]

COPP_API std::vector< double > copp::solver::copp2_socp::solve ( const Problem & problem,
const clarabel::Options & options = {} )

Solve COPP2-SOCP and return an accepted node profile a(s).

This is the normal production API. Non-accepted Clarabel statuses are converted into copp::Error. Use solve_expert to inspect diagnostics even when no profile is accepted.

◆ solve() [2/3]

Expected< std::vector< double > > copp::solver::copp2_socp::solve ( const Problem & problem,
const clarabel::Options & options,
NoThrowTag  )
inline

Definition at line 89 of file copp2_socp.hpp.

◆ solve() [3/3]

Expected< std::vector< double > > copp::solver::copp2_socp::solve ( const Problem & problem,
NoThrowTag tag )
inline

Definition at line 96 of file copp2_socp.hpp.

◆ solve_expert() [1/3]

COPP_API Result copp::solver::copp2_socp::solve_expert ( const Problem & problem,
const clarabel::Options & options = {} )

Solve COPP2-SOCP and always return Clarabel diagnostics.

◆ solve_expert() [2/3]

Expected< Result > copp::solver::copp2_socp::solve_expert ( const Problem & problem,
const clarabel::Options & options,
NoThrowTag  )
inline

Definition at line 105 of file copp2_socp.hpp.

◆ solve_expert() [3/3]

Expected< Result > copp::solver::copp2_socp::solve_expert ( const Problem & problem,
NoThrowTag tag )
inline

Definition at line 112 of file copp2_socp.hpp.