Show / Hide Table of Contents

    Class Plus

    Represents the Operator for an addition

    Inheritance
    System.Object
    Expression
    OperatorExpression
    Plus
    Inherited Members
    OperatorExpression.Expressions
    OperatorExpression.ContainsNoVariables
    OperatorExpression.ContainsAtMostOneVariable
    OperatorExpression.Terms
    OperatorExpression.Variables
    Expression.NonZeroTerms
    Expression.Constant
    Expression.Evaluate(IDictionary<String, Double>)
    Expression._bigMUserValue
    Expression.BigM
    Expression.EmptyExpression
    Expression.Sum(IEnumerable<Expression>)
    Expression.Sum(IEnumerable<Double>)
    Expression.Sum(IEnumerable<Term>)
    Expression.Sum(IEnumerable<Variable>)
    Expression.Sum(Int32, Int32, Func<Int32, Expression>)
    Expression.Sum(Int32, Int32, Func<Int32, Term>)
    Expression.Minimum(IEnumerable<Expression>, Nullable<Double>)
    Expression.Maximum(IEnumerable<Expression>, Nullable<Double>)
    Expression.Absolute(Expression, Nullable<Double>)
    Expression.Floor(Expression, Nullable<Double>)
    Expression.Ceiling(Expression, Nullable<Double>)
    Expression.Normalize()
    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 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

    true if this instance is linear; otherwise, false.

    Overrides
    Expression.IsLinear

    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

    true if linearity is preserved otherwise, false.

    Overrides
    OperatorExpression.PreservesLinearity

    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
    System.Object.ToString()

    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.

    Extension Methods

    ReflectionHelper.GetFieldValue(Object, String)
    ReflectionHelper.SetFieldValue(Object, String, Object)
    ExtensionMethods.Clone<T>(T)
    ExtensionMethods.ThrowIfArgumentIsNull<T>(T, String)
    Back to top Copyright © OPTANO GmbH generated with DocFX
    Privacy Policy | Impressum – Legal Notice