VarD0 Class

A 0-dimensional (scalar) variable symbol.

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public class VarD0
Inheritance
Object    VarD0

Properties

BoundsType Bounds type of the variable.
Definition Definition of the variable.
Dimension Dimension of the variable symbol.
Key Key of the variable.
VariableType Type of the variable: Continuous, Binary or Integer.

Methods

Equals Compares this to obj wrt reference equality.
(Overrides ObjectEquals(Object))
Finalize
(Inherited from Object)
GetHashCode Returns the hash code.
(Overrides ObjectGetHashCode)
GetIndices Returns an immutable collection of the variables indices.
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

Operators

Addition(Sca, VarD0) Adds a variable and a scalar and returns the resulting linear expression.
Addition(VarD0, Sca) Adds a variable and a scalar and returns the resulting linear expression.
Addition(VarD0, VarD0) Adds two variables and returns the resulting linear expression.
Division(VarD0, Sca) Divides a variable by a scalar and returns the resulting linear term.
Equality(Sca, VarD0) Creates a constraint expression where lhs = rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =             y[i] == 0;
Constraint     con  = forall(i) | y[i] == 0;
Equality(VarD0, Sca) Creates a constraint expression where lhs = rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =             y[i] == 0;
Constraint     con  = forall(i) | y[i] == 0;
Equality(VarD0, VarD0) Creates a constraint expression where lhs = rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =                x[i, j] == y[i];
Constraint     con  = forall(i, j) | x[i, j] == y[i];
GreaterThanOrEqual(Sca, VarD0) Creates a constraint expression where lhs >= rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =                x[i, j] >= capacity[i,j];
Constraint     con  = forall(i, j) | x[i, j] >= capacity[i,j];
GreaterThanOrEqual(VarD0, Sca) Creates a constraint expression where lhs >= rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =                x[i, j] >= capacity[i,j];
Constraint     con  = forall(i, j) | x[i, j] >= capacity[i,j];
GreaterThanOrEqual(VarD0, VarD0) Creates a constraint expression where lhs >= rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =                x[i, j] >= y[i];
Constraint     con  = forall(i, j) | x[i, j] >= y[i];
Inequality(Sca, VarD0) Invalid operation; throws an exception.
Inequality(VarD0, Sca) Invalid operation; throws an exception.
Inequality(VarD0, VarD0) Invalid operation; throws an exception.
LessThanOrEqual(Sca, VarD0) Creates a constraint expression where lhs <= rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =                x[i, j] <= capacity[i,j];
Constraint     con  = forall(i, j) | x[i, j] <= capacity[i,j];
LessThanOrEqual(VarD0, Sca) Creates a constraint expression where lhs <= rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =                x[i, j] <= capacity[i,j];
Constraint     con  = forall(i, j) | x[i, j] <= capacity[i,j];
LessThanOrEqual(VarD0, VarD0) Creates a constraint expression where lhs <= rhs.

Note that a constraint is composed of a constraint expression and forall sets expression.

C#
ConstraintExpr expr =                x[i, j] <= y[i];
Constraint     con  = forall(i, j) | x[i, j] <= y[i];
Multiply(Sca, VarD0) Multiplies a variable with a scalar and returns the resulting linear term.
Multiply(VarD0, Sca) Multiplies a variable with a scalar and returns the resulting linear term.
Subtraction(Sca, VarD0) Subtracts a variable from a scalar and returns the resulting linear expression.
Subtraction(VarD0, Sca) Subtracts a scalar from a variable and returns the resulting linear expression.
Subtraction(VarD0, VarD0) Subtracts a variable from another and returns the resulting linear expression.
UnaryNegation(VarD0) Negates the variable and returns the resulting linear term.

Fields

Bounds Bounds of the variable.

See Also