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

Borrowed objective descriptor for COPP solvers. More...

#include <formulation.h>

Data Fields

enum CoppObjectiveKind kind
 Objective kind.
double weight
 Objective weight.
struct CoppSliceF64 alpha
 Linear objective coefficient for variable a.
struct CoppSliceF64 beta
 Linear objective coefficient for variable b.
struct CoppSliceF64 normalize
 Torque objective normalization vector.

Detailed Description

Borrowed objective descriptor for COPP solvers.

For Time, only weight is used. For Linear, alpha and beta are interpreted by each solver family: COPP2 uses node-based alpha and interval-based beta, while COPP3 uses node-based alpha and node-based beta. For ThermalEnergy and TotalVariationTorque, normalize must have length equal to the robot dimension. Torque is evaluated through the robot's stored inverse-dynamics callback when provided, otherwise by the default point model (tau = ddq).

Field Documentation

◆ kind

enum CoppObjectiveKind CoppObjective::kind

Objective kind.

◆ weight

double CoppObjective::weight

Objective weight.

◆ alpha

struct CoppSliceF64 CoppObjective::alpha

Linear objective coefficient for variable a.

◆ beta

struct CoppSliceF64 CoppObjective::beta

Linear objective coefficient for variable b.

◆ normalize

struct CoppSliceF64 CoppObjective::normalize

Torque objective normalization vector.


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