Represents a symbolic variable.
More...
#include </home/soonhokong/work/dreal4/third_party/com_github_robotlocomotion_drake/dreal/symbolic/symbolic_variable.h>
|
std::ostream & | operator<< (std::ostream &os, const Variable &var) |
|
Represents a symbolic variable.
◆ Type
Supported types of symbolic variables.
Enumerator |
---|
CONTINUOUS | A CONTINUOUS variable takes a double value.
|
INTEGER | An INTEGER variable takes an int value.
|
BINARY | A BINARY variable takes an integer value from {0, 1}.
|
BOOLEAN | A BOOLEAN variable takes a bool value.
|
◆ Variable() [1/3]
Default constructor.
Constructs a dummy variable of CONTINUOUS type. This is needed to have Eigen::Matrix<Variable>. The objects created by the default constructor share the same ID, zero. As a result, they all are identified as a single variable by equality operator (==). They all have the same hash value as well.
It is allowed to construct a dummy variable but it should not be used to construct a symbolic expression.
◆ ~Variable()
◆ Variable() [2/3]
Constructs a variable with a string.
If not specified, it has CONTINUOUS type by default.
◆ Variable() [3/3]
Variable |
( |
std::string |
name, |
|
|
Type |
type, |
|
|
bool |
model_variable |
|
) |
| |
Constructs a variable with name
and type
.
model_variable
is ignored.
◆ is_dummy()
Checks if this is a dummy variable (ID = 0) which is created by the default constructor.
The documentation for this class was generated from the following files:
- /home/soonhokong/work/dreal4/third_party/com_github_robotlocomotion_drake/dreal/symbolic/symbolic_variable.h
- /home/soonhokong/work/dreal4/third_party/com_github_robotlocomotion_drake/dreal/symbolic/symbolic_variable.cc