Class OperatorExpression
An operator expression connects (a number of) Expressions, using an operator as, e.g., Min, Plus, Times, etc.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: OPTANO.Modeling.Optimization.Operators
Assembly: Optimization.dll
Syntax
[DataContract]
[Serializable]
public abstract class OperatorExpression : Expression, IOperator, IOperatorExpression
Constructors
OperatorExpression(IEnumerable<Expression>, Int32, Int32)
Initializes a new instance of the OperatorExpression class.
Declaration
protected OperatorExpression(IEnumerable<Expression> expressions, int min, int max)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<Expression> | expressions | The expressions. |
| System.Int32 | min | The minimal number of elements in expressions |
| System.Int32 | max | The maximal number of elements in expressions |
Properties
ContainsAtMostOneVariable
Declaration
public override bool ContainsAtMostOneVariable { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
ContainsNoVariables
Declaration
public override bool ContainsNoVariables { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Expressions
Gets the expressions.
Declaration
public ReadOnlyCollection<Expression> Expressions { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.ReadOnlyCollection<Expression> |
Implements
PreservesLinearity
Gets a value indicating whether the Expression preserves linearity.
Declaration
public abstract bool PreservesLinearity { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Implements
Terms
Gets the terms.
Declaration
public override IEnumerable<Term> Terms { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<Term> | The terms. |
Overrides
Variables
Gets the variables with non-0 term-factors.
Declaration
public override IEnumerable<Variable> Variables { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<Variable> |