Show / Hide Table of Contents

    Class SumExpressionBuilder

    This is a helper class to support efficiently building Expressions from a collection of Terms

    Inheritance
    System.Object
    SumExpressionBuilder
    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
    Assembly: Optimization.dll
    Syntax
    public class SumExpressionBuilder

    Constructors

    SumExpressionBuilder()

    Initializes a new instance of the SumExpressionBuilder class.

    Declaration
    public SumExpressionBuilder()

    Methods

    Add(Expression)

    Adds the specified expression.

    Declaration
    public void Add(Expression expression)
    Parameters
    Type Name Description
    Expression expression

    The expression.

    Add(Term)

    Adds the specified term.

    Declaration
    public void Add(Term term)
    Parameters
    Type Name Description
    Term term

    The term.

    Add(Variable)

    Adds the specified variable.

    Declaration
    public void Add(Variable variable)
    Parameters
    Type Name Description
    Variable variable

    The variable.

    Add(Double)

    Adds the specified constant.

    Declaration
    public void Add(double constant)
    Parameters
    Type Name Description
    System.Double constant

    The constant.

    Clear()

    Clears this instance.

    Declaration
    public void Clear()

    ToExpression()

    Converts a list of terms to an expression by summing them up

    Declaration
    public Expression ToExpression()
    Returns
    Type Description
    Expression

    the resulting Expression

    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