Utils Class
Namespace: Optimizer.Objects
Assembly: xprsdn (in xprsdn.dll) Version: 45.01.02+1f9fd7ff9a8620394fec1839699751312debed40
public abstract class Utils
The Utils type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() |
Abs | Create an expression for Abs(value). |
![]() ![]() |
Arccos | Create an expression for Arccos(value). |
![]() ![]() |
Arcsin | Create an expression for Arcsin(value). |
![]() ![]() |
Arctan | Create an expression for Arctan(value). |
![]() ![]() |
Cos | Create an expression for Cos(value). |
![]() ![]() |
Div(Double, Expression) | Create an expression for dividend + divisor. This is equivalent to new ConstantExpression(dividend).Div(divisor) and is only provided for completeness. |
![]() ![]() |
Div(Expression, Expression) | Create an expression for dividend / divisor. This is equivalent to dividend.Div(divisor) and is only provided for completeness. |
![]() ![]() |
Div(Expression, Double) | Create an expression for dividend + divisor. This is equivalent to dividend.Div(divisor) and is only provided for completeness. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() ![]() |
Exp | Create an expression for Exp(value). |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() ![]() |
Ln | Create an expression for Ln(value). |
![]() ![]() |
Log10 | Create an expression for Log10(value). |
![]() ![]() |
Max | Create an expression for Max(value, ...). Consider also using Variable.maxOf. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
![]() ![]() |
Min | Create an expression for Min(value, ...). Consider also using Variable.MinOf(...). |
![]() ![]() |
Minus(Double, Expression) | Create an expression for minuend + subtrahend. This is equivalent to new ConstantExpression(minuend).Minus(subtrahend) and is only provided for completeness. |
![]() ![]() |
Minus(Expression, Expression) | Create an expression for minuend - subtrahend. This is equivalent to minuend.Minus(subtrahend) and is only provided for completeness. |
![]() ![]() |
Minus(Expression, Double) | Create an expression for minuend + subtrahend. This is equivalent to minuend.Minus(subtrahend) and is only provided for completeness. |
![]() ![]() |
Mul(Double, Expression) | Create an expression for factor1 + factor2. This is equivalent to new ConstantExpression(factor1).Mul(factor2) and is only provided for completeness. |
![]() ![]() |
Mul(Expression, Expression) | Create an expression for factor1 * factor2. This is equivalent to factor1.Mul(factor2) and is only provided for completeness. |
![]() ![]() |
Mul(Expression, Double) | Create an expression for factor1 + factor2. This is equivalent to factor1.Mul(factor2) and is only provided for completeness. |
![]() ![]() |
Plus(Double, Expression) | Create an expression for augend + addend. This is equivalent to new ConstantExpression(augend).Plus(addend) and is only provided for completeness. |
![]() ![]() |
Plus(Expression, Expression) | Create an expression for augend + addend. This is equivalent to augend.Plus(addend) and is only provided for completeness. |
![]() ![]() |
Plus(Expression, Double) | Create an expression for augend + addend. This is equivalent to augend.Plus(addend) and is only provided for completeness. |
![]() ![]() |
Pow(Double, Expression) | Create an expression for base ^ exp. Note that adding the result of pow to your model in any way will turn the model into a non-linear model. In order to square a variable or linear expression, use one of Square, Square, or Square. They all create linear or quadratic expressions. |
![]() ![]() |
Pow(Expression, Expression) | Create an expression for base ^ exp. Note that adding the result of pow to your model in any way will turn the model into a non-linear model. In order to square a variable or linear expression, use one of Square, Square, or Square. They all create linear or quadratic expressions. |
![]() ![]() |
Pow(Expression, Double) | Create an expression for base ^ exp. Note that adding the result of pow to your model in any way will turn the model into a non-linear model. In order to square a variable or linear expression, use one of Square, Square, or Square. They all create linear or quadratic expressions. |
![]() ![]() |
Prod | Create an expression for Prod(value, ...). |
![]() ![]() |
ScalarProduct(IEnumerableVariable, IEnumerableDouble) | Compute the scalar product between a vector of variables and a vector of coefficients. Both vectors are specified as streams of elements. |
![]() ![]() |
ScalarProduct(IEnumerableVariable, IEnumerableVariable, IEnumerableDouble) | Compute the elementwise product between two vectors of variables and a vector of coefficients. All vectors are specified as streams of elements. |
![]() ![]() |
ScalarProductK(IDictionaryK, Variable, IDictionaryK, Double) | Compute the scalar product between a map of variables and a map of coefficients. The function assumes that variables and coefs have the same Keys (missing keys in coefs are treated as zero) and creates a new linear expression by iterating over the keys in variables and adding up the variable/coefficient pair for each key. |
![]() ![]() |
Sign | Create an expression for Sign(value). |
![]() ![]() |
Sin | Create an expression for Sin(value). |
![]() ![]() |
Sqrt | Create an expression for Sqrt(value). |
![]() ![]() |
Sum(Expression, Expression) | Create an expression from an array of other expressions. Note that the other expressions are copied by reference, so changing them later will affect the returned expression. |
![]() ![]() |
SumT(IEnumerableT) | Create an expression from a stream of other expressions. Note that the other expressions are copied by reference, so changing them later will affect the returned expression. |
![]() ![]() |
SumA(Int32, FuncInt32, A) | Create a sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumA(Int32, Int32, FuncInt32, Int32, A) | Create a 2-dimensional sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumA(Int32, Int32, Int32, FuncInt32, Int32, Int32, A) | Create a 3-dimensional sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumA(Int32, Int32, Int32, Int32, FuncInt32, Int32, Int32, Int32, A) | Create a 4-dimensional sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumA(Int32, Int32, Int32, Int32, Int32, Function5Int32, Int32, Int32, Int32, Int32, A) | Create a 5-dimensional sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumT, A(IEnumerableT, FuncT, A) | Create a sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumT1, T2, A(IEnumerableT1, IEnumerableT2, FuncT1, T2, A) | Create a 2-dimensional sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumT1, T2, T3, A(IEnumerableT1, IEnumerableT2, IEnumerableT3, FuncT1, T2, T3, A) | Create a 3-dimensional sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumT1, T2, T3, T4, A(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, FuncT1, T2, T3, T4, A) | Create a 4-dimensional sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
SumT1, T2, T3, T4, T5, A(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, IEnumerableT5, Function5T1, T2, T3, T4, T5, A) | Create a 5-dimensional sum of expressions. Note that the terms are captured by reference, i.e., changing those terms later will affect the return sum. |
![]() ![]() |
Tan | Create an expression for Tan(value). |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object) |
![]() ![]() |
Uminus | Create an expression for -value. |
Reference
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.