Class Abs
Represents the Operator for an absolute value
Inherited Members
Namespace: OPTANO.Modeling.Optimization.Operators
Assembly: Optimization.dll
Syntax
[DataContract]
public sealed class Abs : OperatorExpression, IOperator, IAbs, IOperatorExpression
Constructors
Abs(Expression, Nullable<Double>)
Initializes a new instance of the Abs class.
Declaration
public Abs(Expression expression, double? bigM = default(double? ))
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | An expression. |
System.Nullable<System.Double> | bigM | Large number, only used if the bounds of the variables of the expressions are non-finite It should be chosen large enough, so that the solution space is not cut. But choosing this value too large, it can cause numerical errors. |
Properties
IsLinear
Gets a value indicating whether this operator always preserves linearity when used with linear expressions. Linearity can be re-established when modelling through linear constraints with new variables.
Declaration
public override bool IsLinear { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
PreservesLinearity
Gets a value indicating whether this operator always preserves linearity when used with terms. Linearity can be re-established when modelling through linear constraints with new variables.
Declaration
public override bool PreservesLinearity { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
RepresentingVariable
Gets or sets a variable that can later be set to the representing variable when a model transformation for removing Abs- expressions is applied.
Declaration
public Variable RepresentingVariable { get; set; }
Property Value
Type | Description |
---|---|
Variable |
Implements
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |