Sca Class

A scalar with a constant value in the mathematical programming sense. In other words, its value is known to the mathematical program; although its value might be lazily evaluated from an expression including sets or parameters.

Below is a list of example scalars.

C#
Sca s = 42;
Sca s = 4.2;
Sca s = i; // where i is a .
Sca s = 2 * i;
Sca s = M; // where M is a .
Sca s = demand[i]; // where demand is a .
Sca s = (i * demand[i] + 2) / density[i]; // where density also is a .

Definition

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

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

Operators

Addition(Sca, Sca) Adds two scalars; and returns the resulting scalar.
Division(Sca, Sca) Divides one scalar by another; and returns the resulting scalar.
(Double to Sca) Implicitly converts the constant number to a scalar.
(Int32 to Sca) Implicitly converts the constant number to a scalar.
(Int64 to Sca) Implicitly converts the constant number to a scalar.
(ParD0 to Sca) Implicitly converts the 0-dimensional parameter to a scalar.
(Set to Sca) Implicitly converts the set to a scalar.
(Single to Sca) Implicitly converts the constant number to a scalar.
Multiply(Sca, Sca) Multiplies two scalars; and returns the resulting scalar.
Subtraction(Sca, Sca) Subtracts one scalar from another; and returns the resulting scalar.
UnaryNegation(Sca) Returns the negation of the scalar.

See Also