![]() |
Sleipnir Python API
|
Public Member Functions | |
| None | __init__ (self) |
| None | __init__ (self, float value) |
| None | __init__ (self, int value) |
| None | __init__ (self, VariableMatrix arg) |
| None | set_value (self, float value) |
| None | set_value (self, float value) |
| float | value (self) |
| ExpressionType | type (self) |
| Variable | __rmul__ (self, float lhs) |
| Variable | __mul__ (self, float rhs) |
| Variable | __mul__ (self, Variable rhs) |
| Variable | __imul__ (self, float rhs) |
| Variable | __imul__ (self, Variable rhs) |
| Variable | __rtruediv__ (self, float lhs) |
| Variable | __truediv__ (self, float rhs) |
| Variable | __truediv__ (self, Variable rhs) |
| Variable | __itruediv__ (self, float rhs) |
| Variable | __itruediv__ (self, Variable rhs) |
| Variable | __radd__ (self, float lhs) |
| Variable | __add__ (self, float rhs) |
| Variable | __add__ (self, Variable rhs) |
| Variable | __iadd__ (self, float rhs) |
| Variable | __iadd__ (self, Variable rhs) |
| Variable | __rsub__ (self, float lhs) |
| Variable | __sub__ (self, float rhs) |
| Variable | __sub__ (self, Variable rhs) |
| Variable | __isub__ (self, float rhs) |
| Variable | __isub__ (self, Variable rhs) |
| Variable | __pow__ (self, int power) |
| Variable | __neg__ (self) |
| Variable | __pos__ (self) |
| EqualityConstraints | __eq__ (self, Variable rhs) |
| EqualityConstraints | __eq__ (self, float rhs) |
| EqualityConstraints | __eq__ (self, float lhs) |
| InequalityConstraints | __lt__ (self, Variable rhs) |
| InequalityConstraints | __lt__ (self, float rhs) |
| InequalityConstraints | __lt__ (self, float lhs) |
| InequalityConstraints | __le__ (self, Variable rhs) |
| InequalityConstraints | __le__ (self, float rhs) |
| InequalityConstraints | __le__ (self, float lhs) |
| InequalityConstraints | __gt__ (self, Variable rhs) |
| InequalityConstraints | __gt__ (self, float rhs) |
| InequalityConstraints | __gt__ (self, float lhs) |
| InequalityConstraints | __ge__ (self, Variable rhs) |
| InequalityConstraints | __ge__ (self, float rhs) |
| InequalityConstraints | __ge__ (self, float lhs) |
An autodiff variable pointing to an expression node.
| None jormungandr.autodiff.Variable.__init__ | ( | self | ) |
Constructs a linear Variable with a value of zero.
| None jormungandr.autodiff.Variable.__init__ | ( | self, | |
| float | value | ||
| ) |
Constructs an empty Variable.
| None jormungandr.autodiff.Variable.__init__ | ( | self, | |
| int | value | ||
| ) |
Constructs an empty Variable.
| None jormungandr.autodiff.Variable.__init__ | ( | self, | |
| VariableMatrix | arg | ||
| ) |
| Variable jormungandr.autodiff.Variable.__add__ | ( | self, | |
| float | rhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.Variable.__eq__ | ( | self, | |
| float | lhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.Variable.__eq__ | ( | self, | |
| float | rhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.Variable.__eq__ | ( | self, | |
| Variable | rhs | ||
| ) |
Equality operator that returns an equality constraint for two
Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__ge__ | ( | self, | |
| float | lhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__ge__ | ( | self, | |
| float | rhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__ge__ | ( | self, | |
| Variable | rhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__gt__ | ( | self, | |
| float | lhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__gt__ | ( | self, | |
| float | rhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__gt__ | ( | self, | |
| Variable | rhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| Variable jormungandr.autodiff.Variable.__iadd__ | ( | self, | |
| float | rhs | ||
| ) |
Variable-Variable compound addition operator.
Parameter ``rhs``:
Operator right-hand side.
Returns:
Result of addition.
| Variable jormungandr.autodiff.Variable.__imul__ | ( | self, | |
| float | rhs | ||
| ) |
Variable-Variable compound multiplication operator.
Parameter ``rhs``:
Operator right-hand side.
Returns:
Result of multiplication.
| Variable jormungandr.autodiff.Variable.__isub__ | ( | self, | |
| float | rhs | ||
| ) |
Variable-Variable compound subtraction operator.
Parameter ``rhs``:
Operator right-hand side.
Returns:
Result of subtraction.
| Variable jormungandr.autodiff.Variable.__itruediv__ | ( | self, | |
| float | rhs | ||
| ) |
Variable-Variable compound division operator.
Parameter ``rhs``:
Operator right-hand side.
Returns:
Result of division.
| InequalityConstraints jormungandr.autodiff.Variable.__le__ | ( | self, | |
| float | lhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__le__ | ( | self, | |
| float | rhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__le__ | ( | self, | |
| Variable | rhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__lt__ | ( | self, | |
| float | lhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__lt__ | ( | self, | |
| float | rhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.Variable.__lt__ | ( | self, | |
| Variable | rhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| Variable jormungandr.autodiff.Variable.__mul__ | ( | self, | |
| float | rhs | ||
| ) |
| Variable jormungandr.autodiff.Variable.__neg__ | ( | self | ) |
| Variable jormungandr.autodiff.Variable.__pos__ | ( | self | ) |
| Variable jormungandr.autodiff.Variable.__pow__ | ( | self, | |
| int | power | ||
| ) |
| Variable jormungandr.autodiff.Variable.__radd__ | ( | self, | |
| float | lhs | ||
| ) |
| Variable jormungandr.autodiff.Variable.__rmul__ | ( | self, | |
| float | lhs | ||
| ) |
| Variable jormungandr.autodiff.Variable.__rsub__ | ( | self, | |
| float | lhs | ||
| ) |
| Variable jormungandr.autodiff.Variable.__rtruediv__ | ( | self, | |
| float | lhs | ||
| ) |
| Variable jormungandr.autodiff.Variable.__sub__ | ( | self, | |
| float | rhs | ||
| ) |
| Variable jormungandr.autodiff.Variable.__truediv__ | ( | self, | |
| float | rhs | ||
| ) |
| None jormungandr.autodiff.Variable.set_value | ( | self, | |
| float | value | ||
| ) |
Sets Variable's internal value.
Parameter ``value``:
The value of the Variable.
| None jormungandr.autodiff.Variable.set_value | ( | self, | |
| float | value | ||
| ) |
| ExpressionType jormungandr.autodiff.Variable.type | ( | self | ) |
Returns the type of this expression (constant, linear, quadratic, or
nonlinear).
Returns:
The type of this expression.
| float jormungandr.autodiff.Variable.value | ( | self | ) |
Returns the value of this variable.
Returns:
The value of this variable.