VarUnaryNegation Operator
Negates the variable, returns the term where the coefficient is one.
Set i = ...;
VarD1 x = ...;
Assert.Equal(-x[i], (-1) * x[i]);
Namespace: Orx.MathProgAssembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
public static Term operator -(
Var variable
)
- variable Var
- Variable to negate.
Term