Class Plus
Represents the Operator for an addition
Inherited Members
Namespace: OPTANO.Modeling.Optimization.Operators
Assembly: Optimization.dll
Syntax
[DataContract]
[Serializable]
public class Plus : OperatorExpression, IOperator, IPlus, IOperatorExpression
  Constructors
Plus(Term, Term)
Initializes a new instance of the Plus class.
Declaration
public Plus(Term term1, Term term2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Term | term1 | The first term.  | 
      
| Term | term2 | The second term.  | 
      
Plus(IEnumerable<Expression>)
Initializes a new instance of the Plus class.
Declaration
public Plus(IEnumerable<Expression> expressions)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<Expression> | expressions | The expressions.  | 
      
Properties
IsLinear
Gets a value indicating whether this instance is linear.
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.
Declaration
public override bool PreservesLinearity { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Overrides
Methods
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | A System.String that represents this instance.  | 
      
Overrides
Operators
Addition(Expression, Plus)
Implements the operator +.
Declaration
public static Plus operator +(Expression expression, Plus plus)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Expression | expression | The expression.  | 
      
| Plus | plus | The plus.  | 
      
Returns
| Type | Description | 
|---|---|
| Plus | The result of the operator.  | 
      
Addition(Plus, Expression)
Implements the operator +.
Declaration
public static Plus operator +(Plus plus, Expression expression)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Plus | plus | The plus.  | 
      
| Expression | expression | The expression.  | 
      
Returns
| Type | Description | 
|---|---|
| Plus | The result of the operator.  | 
      
Addition(Plus, Plus)
Implements the operator +.
Declaration
public static Plus operator +(Plus plus1, Plus plus2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Plus | plus1 | The first plus.  | 
      
| Plus | plus2 | The second plus.  | 
      
Returns
| Type | Description | 
|---|---|
| Plus | The result of the operator.  | 
      
Addition(Plus, Term)
Implements the operator +.
Declaration
public static Plus operator +(Plus plus, Term term)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Plus | plus | The plus.  | 
      
| Term | term | The term.  | 
      
Returns
| Type | Description | 
|---|---|
| Plus | The result of the operator.  | 
      
Addition(Plus, Double)
Implements the operator +.
Declaration
public static Plus operator +(Plus plus, double constant)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Plus | plus | The plus.  | 
      
| System.Double | constant | The constant.  | 
      
Returns
| Type | Description | 
|---|---|
| Plus | The result of the operator.  | 
      
Addition(Term, Plus)
Implements the operator +.
Declaration
public static Plus operator +(Term term, Plus plus)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Term | term | The term.  | 
      
| Plus | plus | The plus.  | 
      
Returns
| Type | Description | 
|---|---|
| Plus | The result of the operator.  | 
      
Addition(Double, Plus)
Implements the operator +.
Declaration
public static Plus operator +(double constant, Plus plus)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | constant | The constant.  | 
      
| Plus | plus | The plus.  | 
      
Returns
| Type | Description | 
|---|---|
| Plus | The result of the operator.  |