Initializing help system before first use

Utils Class

Utilities for modeling.
Inheritance Hierarchy
SystemObject
   Optimizer.ObjectsUtils

Namespace:  Optimizer.Objects
Assembly: xprsdn (in xprsdn.dll) Version: 45.01.02+1f9fd7ff9a8620394fec1839699751312debed40
Syntax
C#
public abstract class Utils

The Utils type exposes the following members.

Constructors
  Name Description
Protected method Utils Initializes a new instance of the Utils class
Top
Methods
  Name Description
Public methodStatic member Abs Create an expression for Abs(value).
Public methodStatic member Arccos Create an expression for Arccos(value).
Public methodStatic member Arcsin Create an expression for Arcsin(value).
Public methodStatic member Arctan Create an expression for Arctan(value).
Public methodStatic member Cos Create an expression for Cos(value).
Public methodStatic member Div(Double, Expression) Create an expression for dividend + divisor. This is equivalent to new ConstantExpression(dividend).Div(divisor) and is only provided for completeness.
Public methodStatic member Div(Expression, Expression) Create an expression for dividend / divisor. This is equivalent to dividend.Div(divisor) and is only provided for completeness.
Public methodStatic member Div(Expression, Double) Create an expression for dividend + divisor. This is equivalent to dividend.Div(divisor) and is only provided for completeness.
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic member Exp Create an expression for Exp(value).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public method GetHashCode Serves as the default hash function.
(Inherited from Object)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public methodStatic member Ln Create an expression for Ln(value).
Public methodStatic member Log10 Create an expression for Log10(value).
Public methodStatic member Max Create an expression for Max(value, ...). Consider also using Variable.maxOf.
Protected method MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic member Min Create an expression for Min(value, ...). Consider also using Variable.MinOf(...).
Public methodStatic member Minus(Double, Expression) Create an expression for minuend + subtrahend. This is equivalent to new ConstantExpression(minuend).Minus(subtrahend) and is only provided for completeness.
Public methodStatic member Minus(Expression, Expression) Create an expression for minuend - subtrahend. This is equivalent to minuend.Minus(subtrahend) and is only provided for completeness.
Public methodStatic member Minus(Expression, Double) Create an expression for minuend + subtrahend. This is equivalent to minuend.Minus(subtrahend) and is only provided for completeness.
Public methodStatic member Mul(Double, Expression) Create an expression for factor1 + factor2. This is equivalent to new ConstantExpression(factor1).Mul(factor2) and is only provided for completeness.
Public methodStatic member Mul(Expression, Expression) Create an expression for factor1 * factor2. This is equivalent to factor1.Mul(factor2) and is only provided for completeness.
Public methodStatic member Mul(Expression, Double) Create an expression for factor1 + factor2. This is equivalent to factor1.Mul(factor2) and is only provided for completeness.
Public methodStatic member Plus(Double, Expression) Create an expression for augend + addend. This is equivalent to new ConstantExpression(augend).Plus(addend) and is only provided for completeness.
Public methodStatic member Plus(Expression, Expression) Create an expression for augend + addend. This is equivalent to augend.Plus(addend) and is only provided for completeness.
Public methodStatic member Plus(Expression, Double) Create an expression for augend + addend. This is equivalent to augend.Plus(addend) and is only provided for completeness.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member Prod Create an expression for Prod(value, ...).
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member Sign Create an expression for Sign(value).
Public methodStatic member Sin Create an expression for Sin(value).
Public methodStatic member Sqrt Create an expression for Sqrt(value).
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member Tan Create an expression for Tan(value).
Public method ToString Returns a string that represents the current object.
(Inherited from Object)
Public methodStatic member Uminus Create an expression for -value.
Top
See Also

© 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.