public abstract class LeastSquaresTermBase extends QPTermBase implements LeastSquaresTerm
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED |
static double |
defaultWeight |
static PropertyList |
myProps |
| Constructor and Description |
|---|
LeastSquaresTermBase() |
LeastSquaresTermBase(double weight) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRows(MatrixNd H,
VectorNd f)
Appends the provided rows to the cost term
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
void |
getQP(MatrixNd Q,
VectorNd P,
double t0,
double t1)
Sums this term to the arguments Q and P
|
int |
getTerm(MatrixNd H,
VectorNd f,
int rowoff,
double t0,
double t1)
Gets the current least squares term and returns the index of the last row
|
boolean |
isEnabled()
Returns that enabled status of this term, for use if term is
an inequality / equality constraint
|
void |
setEnabled(boolean enabled) |
void |
setSize(int size) |
dispose, getProperty, getSize, getWeight, setWeightequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRowSizegetPropertypublic static final double defaultWeight
public static final boolean DEFAULT_ENABLED
public static PropertyList myProps
public LeastSquaresTermBase()
public LeastSquaresTermBase(double weight)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class QPTermBasepublic void addRows(MatrixNd H, VectorNd f)
H - left hand sidef - right hand sidepublic void getQP(MatrixNd Q, VectorNd P, double t0, double t1)
QPTermgetQP in interface QPTermgetQP in class QPTermBaseQ - the Quadratic termP - the Proportional termt0 - time at start of stept1 - time at end of steppublic int getTerm(MatrixNd H, VectorNd f, int rowoff, double t0, double t1)
getTerm in interface LeastSquaresTermH - container to store the left hand sidef - container to store the right hand siderowoff - start from this rowt0 - time at start of stept1 - time at end of steppublic void setSize(int size)
setSize in interface QPTermsetSize in class QPTermBasepublic boolean isEnabled()
LeastSquaresTermisEnabled in interface LeastSquaresTermpublic void setEnabled(boolean enabled)