ilqgames
A new real-time solver for large-scale differential games.
Public Types | Public Member Functions | List of all members
ilqgames::PlayerCost Class Reference

Public Types

enum  CostStructure { SUM, MAX, MIN }
 

Public Member Functions

 PlayerCost (const std::string &name="", float state_regularization=0.0, float control_regularization=0.0)
 
void AddStateCost (const std::shared_ptr< Cost > &cost)
 
void AddControlCost (PlayerIndex idx, const std::shared_ptr< Cost > &cost)
 
void AddStateConstraint (const std::shared_ptr< Constraint > &constraint)
 
void AddControlConstraint (PlayerIndex idx, const std::shared_ptr< Constraint > &constraint)
 
float Evaluate (Time t, const VectorXf &x, const std::vector< VectorXf > &us) const
 
float Evaluate (const OperatingPoint &op, Time time_step) const
 
float Evaluate (const OperatingPoint &op) const
 
float EvaluateOffset (Time t, Time next_t, const VectorXf &next_x, const std::vector< VectorXf > &us) const
 
QuadraticCostApproximation Quadraticize (Time t, const VectorXf &x, const std::vector< VectorXf > &us) const
 
QuadraticCostApproximation QuadraticizeControlCosts (Time t, const VectorXf &x, const std::vector< VectorXf > &us) const
 
void SetTimeAdditive ()
 
void SetMaxOverTime ()
 
void SetMinOverTime ()
 
bool IsTimeAdditive () const
 
bool IsMaxOverTime () const
 
bool IsMinOverTime () const
 
size_t TimeOfExtremeCost ()
 
void SetTimeOfExtremeCost (size_t kk)
 
const PtrVector< Cost > & StateCosts () const
 
const PlayerPtrMultiMap< Cost > & ControlCosts () const
 
const PtrVector< Constraint > & StateConstraints () const
 
const PlayerPtrMultiMap< Constraint > & ControlConstraints () const
 
bool IsConstrained () const
 

Detailed Description

Definition at line 57 of file player_cost.h.


The documentation for this class was generated from the following files: