COPP C ABI
C interface for COPP trajectory optimization
Loading...
Searching...
No Matches
CoppProfile3rd Struct Reference

Owned third-order profile returned by TOPP3/COPP3 C ABI solvers. More...

#include <formulation.h>

Data Fields

struct CoppVecF64 a
 Node-based profile a[k] = dot{s}_k^2.
struct CoppVecF64 b
 Node-based profile b[k] = ddot{s}_k.
size_t num_stationary_start
 Effective stationary interval count at the start.
size_t num_stationary_end
 Effective stationary interval count at the end.

Detailed Description

Owned third-order profile returned by TOPP3/COPP3 C ABI solvers.

a[k] stores dot{s}_k^2, b[k] stores ddot{s}_k, and num_stationary_* stores the effective stationary head/tail interval counts returned by the solver. Both vectors are library-owned and must be released together with copp_profile_3rd_free.

Example

The example below receives a third-order solver profile, reads the first station, and releases the owned buffers.

struct CoppProfile3rd profile = {{0}, {0}, 0, 0};
check(topp3_socp(problem, options, &profile));
double a0 = profile.a.data[0];
double b0 = profile.b.data[0];
void copp_profile_3rd_free(struct CoppProfile3rd profile)
Release a third-order profile returned by COPP.
enum CoppStatus topp3_socp(struct Topp3Problem problem, struct CoppClarabelOptions options, struct CoppProfile3rd *out_profile)
Solve a TOPP3-SOCP problem.
Owned third-order profile returned by TOPP3/COPP3 C ABI solvers.
struct CoppVecF64 b
Node-based profile b[k] = ddot{s}_k.
struct CoppVecF64 a
Node-based profile a[k] = dot{s}_k^2.
double * data
Pointer to the first element, or null for an empty vector.
Definition core.h:832

Definition at line 222 of file formulation.h.

Field Documentation

◆ a

struct CoppVecF64 CoppProfile3rd::a

Node-based profile a[k] = dot{s}_k^2.

Definition at line 226 of file formulation.h.

◆ b

struct CoppVecF64 CoppProfile3rd::b

Node-based profile b[k] = ddot{s}_k.

Definition at line 230 of file formulation.h.

◆ num_stationary_start

size_t CoppProfile3rd::num_stationary_start

Effective stationary interval count at the start.

Definition at line 234 of file formulation.h.

◆ num_stationary_end

size_t CoppProfile3rd::num_stationary_end

Effective stationary interval count at the end.

Definition at line 238 of file formulation.h.


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