Initializing help system before first use

Utils Class

Utilities for modeling.
Inheritance Hierarchy
System.Object
   Optimizer.Objects.Utils

Namespace:   Optimizer.Objects
Assembly:  xprsdn (in xprsdn.dll) Version: 44.01.04
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 attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(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 Variable.Square(), LinTerm.Square(), or LinExpression.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 Variable.Square(), LinTerm.Square(), or LinExpression.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 Variable.Square(), LinTerm.Square(), or LinExpression.Square(). They all create linear or quadratic expressions.
Public methodStatic member Prod
Create an expression for Prod(value, ...).
Public methodStatic member ScalarProduct(IEnumerable<Variable>, IEnumerable<Double>)
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(IEnumerable<Variable>, IEnumerable<Variable>, IEnumerable<Double>)
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 ScalarProduct<K>(IDictionary<K, Variable>, IDictionary<K, 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 Sum<T>(IEnumerable<T>)
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 Sum<A>(Int32, Func<Int32, 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 Sum<T, A>(IEnumerable<T>, Func<T, 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 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.