ConstraintGeneration.Constraint Class Reference

Public Member Functions

def __init__ (self, name, n)
 
def __getitem__ (self, index)
 
def getVars (self)
 
def getConstraints (self)
 
def addConstraint (self, f)
 
def jacobian (self)
 
def funcCode (self)
 
def jacCode (self)
 
def toCode (self)
 

Public Attributes

 name_
 
 variables_
 
 constraints_
 

Detailed Description

Definition at line 24 of file ConstraintGeneration.py.

Member Function Documentation

◆ __getitem__()

def ConstraintGeneration.Constraint.__getitem__ (   self,
  index 
)
Return the index^th variable.

Definition at line 32 of file ConstraintGeneration.py.

◆ addConstraint()

def ConstraintGeneration.Constraint.addConstraint (   self,
  f 
)
Add some symbolic function of variables to the list of constraints.

Definition at line 44 of file ConstraintGeneration.py.

◆ getConstraints()

def ConstraintGeneration.Constraint.getConstraints (   self)
Create a constraint function vector.

Definition at line 40 of file ConstraintGeneration.py.

◆ getVars()

def ConstraintGeneration.Constraint.getVars (   self)
Create a variable vector.

Definition at line 36 of file ConstraintGeneration.py.

◆ jacobian()

def ConstraintGeneration.Constraint.jacobian (   self)
Compute the Jacobian of the current list of constraints.

Definition at line 48 of file ConstraintGeneration.py.


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