Class Times
Represents the Operator for a multiplication
Inherited Members
Namespace: OPTANO.Modeling.Optimization.Operators
Assembly: Optimization.dll
Syntax
[DataContract]
[Serializable]
public sealed class Times : OperatorExpression, IOperator, ITimes, IOperatorExpression
Constructors
Times(IEnumerable<Expression>)
Initializes a new instance of the Times class.
Declaration
public Times(IEnumerable<Expression> expressions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Expression> | expressions | The expressions. |
Properties
IsLinear
Gets or sets 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
Multiply(Expression, Times)
Implements the operator *.
Declaration
public static Expression operator *(Expression expression1, Times expression2)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression1 | The left expression. |
Times | expression2 | The right expression. |
Returns
Type | Description |
---|---|
Expression | The result of the operator. |
Multiply(Times, Expression)
Implements the operator *.
Declaration
public static Expression operator *(Times times, Expression expression2)
Parameters
Type | Name | Description |
---|---|---|
Times | times | The left expression. |
Expression | expression2 | The right expression. |
Returns
Type | Description |
---|---|
Expression | The result of the operator. |
Multiply(Times, Times)
Implements the operator *.
Declaration
public static Times operator *(Times times1, Times times2)
Parameters
Type | Name | Description |
---|---|---|
Times | times1 | The left factor. |
Times | times2 | The right factor. |
Returns
Type | Description |
---|---|
Times | The result of the operator as single Times. |