COPP C ABI
C interface for COPP trajectory optimization
Loading...
Searching...
No Matches
copp3.h
Go to the documentation of this file.
1#ifndef COPP_COPP3_H
2#define COPP_COPP3_H
3
4/*
5 * Generated by bindings/c/scripts/generate_headers.ps1.
6 * Do not edit by hand; update src/ffi/c and regenerate.
7 */
8
14
15#include <stddef.h>
16#include <stdbool.h>
17#include <stdint.h>
18#include "copp/core.h"
19#include "copp/formulation.h"
20#include "copp/topp3.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30
104
149 struct CoppClarabelOptions options,
150 struct CoppProfile3rd *out_profile);
151
169 struct CoppClarabelOptions options,
170 struct Copp3SocpResult *out_result);
171
179
181
182#ifdef __cplusplus
183}
184#endif
185
186#endif /* COPP_COPP3_H */
Core status, memory, matrix, and shared solver option types.
TOPP/COPP problem descriptors, objectives, and profile ownership.
enum CoppStatus copp3_socp(struct Copp3Problem problem, struct CoppClarabelOptions options, struct CoppProfile3rd *out_profile)
Solve a COPP3-SOCP problem.
void copp3_socp_result_free(struct Copp3SocpResult result)
Release memory owned by a Copp3SocpResult.
enum CoppStatus copp3_socp_expert(struct Copp3Problem problem, struct CoppClarabelOptions options, struct Copp3SocpResult *out_result)
Solve a COPP3-SOCP problem and always return Clarabel diagnostics.
CoppClarabelSolverStatus
Clarabel solver status returned by SOCP expert results.
Definition core.h:380
CoppStatus
C ABI status code returned by COPP FFI functions.
Definition core.h:34
Borrowed value descriptor for a COPP3 problem solved from C.
Compact COPP3-SOCP expert result returned to C.
Definition copp3.h:40
struct CoppProfile3rd profile
Accepted third-order profile, or an empty profile when has_profile == false.
Definition copp3.h:49
struct CoppVecF64 s
Raw Clarabel primal-cone slack vector.
Definition copp3.h:61
struct CoppVecF64 z
Raw Clarabel dual solution vector.
Definition copp3.h:57
double obj_val
Primal objective value reported by Clarabel.
Definition copp3.h:69
struct CoppVecF64 objective_terms
Per-objective unweighted values computed from accepted profile.
Definition copp3.h:102
double solve_time
Clarabel solve time in seconds.
Definition copp3.h:77
double objective_value
Weighted COPP objective value computed from accepted profile; NaN otherwise.
Definition copp3.h:98
struct CoppClarabelLinearSolverInfo linsolver
Linear solver metadata reported by Clarabel.
Definition copp3.h:93
enum CoppClarabelSolverStatus solver_status
Final Clarabel solver status.
Definition copp3.h:65
double obj_val_dual
Dual objective value reported by Clarabel.
Definition copp3.h:73
bool has_profile
Whether profile contains an accepted third-order profile.
Definition copp3.h:44
double r_prim
Primal residual reported by Clarabel.
Definition copp3.h:85
struct CoppVecF64 x
Raw Clarabel primal solution vector.
Definition copp3.h:53
double r_dual
Dual residual reported by Clarabel.
Definition copp3.h:89
uint32_t iterations
Number of interior-point iterations.
Definition copp3.h:81
Linear solver metadata reported by Clarabel.
Definition core.h:434
Shared Clarabel options for COPP SOCP solvers.
Definition core.h:627
Owned third-order profile returned by TOPP3/COPP3 C ABI solvers.
Library-owned f64 vector returned to C.
Definition core.h:828
TOPP3-LP and TOPP3-SOCP APIs.