Core status, memory, matrix, and shared solver option types.
void copp2_socp_result_free(struct Copp2SocpResult result)
Release memory owned by a Copp2SocpResult.
enum CoppStatus copp2_socp_expert(struct Copp2Problem problem, struct CoppClarabelOptions options, struct Copp2SocpResult *out_result)
Solve a COPP2-SOCP problem and always return Clarabel diagnostics.
enum CoppStatus copp2_socp(struct Copp2Problem problem, struct CoppClarabelOptions options, struct CoppVecF64 *out_a)
Solve a COPP2-SOCP problem.
CoppClarabelSolverStatus
Clarabel solver status returned by SOCP expert results.
CoppStatus
C ABI status code returned by COPP FFI functions.
Borrowed value descriptor for a COPP2 problem solved from C.
Compact COPP2-SOCP expert result returned to C.
struct CoppVecF64 objective_terms
Per-objective unweighted values computed from accepted a.
double objective_value
Weighted COPP objective value computed from accepted a; NaN otherwise.
struct CoppVecF64 z
Raw Clarabel dual solution vector.
double solve_time
Clarabel solve time in seconds.
struct CoppVecF64 a
Accepted a profile, or an empty vector when has_a == false.
struct CoppClarabelLinearSolverInfo linsolver
Linear solver metadata reported by Clarabel.
struct CoppVecF64 x
Raw Clarabel primal solution vector.
struct CoppVecF64 s
Raw Clarabel primal-cone slack vector.
enum CoppClarabelSolverStatus solver_status
Final Clarabel solver status.
bool has_a
Whether a contains an accepted a(s) = (ds/dt)^2 profile.
double obj_val_dual
Dual objective value reported by Clarabel.
double obj_val
Primal objective value reported by Clarabel.
uint32_t iterations
Number of interior-point iterations.
double r_dual
Dual residual reported by Clarabel.
double r_prim
Primal residual reported by Clarabel.
Linear solver metadata reported by Clarabel.
Shared Clarabel options for COPP SOCP solvers.
Library-owned f64 vector returned to C.