Utils Class
Namespace: Optimizer.Objects
Assembly: xprsdn (in xprsdn.dll) Version: 44.01.04
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 | (Inherited from Object.) |
![]() ![]() |
Exp |
Create an expression for
Exp(value).
|
![]() |
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.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(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 Variable.Square(), LinTerm.Square(), or LinExpression.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 Variable.Square(), LinTerm.Square(), or LinExpression.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 Variable.Square(), LinTerm.Square(), or LinExpression.Square(). They all create linear or quadratic expressions.
|
![]() ![]() |
Prod |
Create an expression for
Prod(value, ...).
|
![]() ![]() |
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.
|
![]() ![]() |
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.
|
![]() ![]() |
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.
|
![]() ![]() |
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.
|
![]() ![]() |
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.
|
![]() ![]() |
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.
|
![]() ![]() |
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.
|
![]() ![]() |
Tan |
Create an expression for
Tan(value).
|
![]() |
ToString | (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.