TVM
0.9.2
|
#include <tvm/constraint/abstract/Constraint.h>
Public Member Functions | |
virtual const Eigen::VectorXd & | l () const |
virtual const Eigen::VectorXd & | u () const |
virtual const Eigen::VectorXd & | e () const |
Type | type () const |
bool | isEquality () const |
RHS | rhs () const |
Public Member Functions inherited from tvm::internal::ObjWithId | |
ObjWithId (const ObjWithId &)=delete | |
ObjWithId (ObjWithId &&other) | |
ObjWithId & | operator= (const ObjWithId &)=delete |
ObjWithId & | operator= (ObjWithId &&other) |
int | id () const |
Public Member Functions inherited from tvm::graph::abstract::OutputSelector< Constraint, tvm::internal::FirstOrderProvider > | |
OutputSelector (Args &&... args) | |
void | lock () |
void | unlock () |
bool | isLocked () const |
Protected Member Functions | |
Constraint (Type ct, RHS cr, int m=0) | |
void | resizeCache () override |
Eigen::VectorXd & | lRef () |
Eigen::VectorXd & | uRef () |
Eigen::VectorXd & | eRef () |
Protected Member Functions inherited from tvm::internal::ObjWithId | |
ObjWithId () | |
Protected Member Functions inherited from tvm::graph::abstract::OutputSelector< Constraint, tvm::internal::FirstOrderProvider > | |
void | disableOutput (EnumT e) |
void | disableOutput (EnumT e, Args... args) |
void | enableOutput (EnumT e) |
void | enableOutput (EnumT e, Args... args) |
bool | isOutputCustomEnabled (int e) const override |
Protected Attributes | |
internal::RHSVectors | vectors_ |
Base class for representing a constraint.
It manages the enabling/disabling of the outputs L, U and E (depending on its type and rhs convention).
FIXME: have the updateValue here and add an output check()
Constructor. Only available to derived classes.
ct | The constraint type |
cr | The rhs convention |
The | (output) size of the constraint |
|
inlinevirtual |
Return the vector e
l
exists for the given constraint conventions, but the method does not throw if it is not the case.
|
inlineprotected |
Direct (non-const) access to e
for derived classes
bool tvm::constraint::abstract::Constraint::isEquality | ( | ) | const |
Check whether this is an equality constraint.
|
inlinevirtual |
Return the vector l
l
exists for the given constraint conventions, but the method does not throw if it is not the case.
|
inlineprotected |
Direct (non-const) access to l
for derived classes
|
overrideprotected |
Resize the cache (rhs vector(s), jacobian matrices,...) for the current size of the constraint.
RHS tvm::constraint::abstract::Constraint::rhs | ( | ) | const |
Return the convention for the right-hand side e
, l
, u
or both l
and u
of the constraint.
Type tvm::constraint::abstract::Constraint::type | ( | ) | const |
Return the type of the constraint.
|
inlinevirtual |
Return the vector u
l
exists for the given constraint conventions, but the method does not throw if it is not the case.
|
inlineprotected |
Direct (non-const) access to u
for derived classes
|
protected |
Cache for l, u and e