LinTerm Methods
The LinTerm type exposes the following members.
Name | Description | |
---|---|---|
![]() |
Deconstruct |
Deconstruct this instance into a tuple of values.
|
![]() |
Div(Double) |
Create a new expression that represents the quotient of
this and
arg.
(Overrides Expression.Div(Double).) |
![]() |
Div(ConstantExpression) |
Create a new expression that represents the quotient of
this and
arg.
|
![]() |
Div(Expression) |
Create a new expression that represents the quotient of
this and
arg.
(Overrides Expression.Div(Expression).) |
![]() |
Eq(Double) |
Create an "equals" constraint with this expression as left-hand side.
(Inherited from AbstractExpression.) |
![]() |
Eq(Expression) |
Create an "equals" constraint with this expression as left-hand side.
(Inherited from AbstractExpression.) |
![]() |
Equals | (Inherited from Object.) |
![]() |
Evaluate |
Compute the value of this expression with respect to the given solution Vector (which is not required to be feasible).
(Overrides Expression.Evaluate(Double).) |
![]() |
Extract(Double, IPostfixExtractor) |
Extract this expression into postfix notation.
(Overrides Expression.Extract(Double, IPostfixExtractor).) |
![]() |
Extract(Double, XPRSprob.RowCreator) |
Extract this expression into a row. This is for internal use only, you should never have to call this function explicitly.
(Overrides Expression.Extract(Double, XPRSprob.RowCreator).) |
![]() |
Geq(Double) |
Create a "greater than or equal" constraint with this expression as left-hand side.
(Inherited from AbstractExpression.) |
![]() |
Geq(Expression) |
Create a "greater than or equal" constraint with this expression as left-hand side.
(Inherited from AbstractExpression.) |
![]() |
GetConstantView |
Get the constant value to which this expression evaluates. If this expression can be treated as a constant value then the function returns the constant value. If the expression cannot be treated as a constant then an exception is raised. In order to test whether the expression can be treated as constant, use function .GetMaxDegree() and check whether it returns 0.
(Inherited from AbstractExpression.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetLinearView |
Get a linear read-only view on this expression. If this expression can be treated as a linear expression then the function returns a readonly view on the linear terms (including the constant term if there is any). If the expression cannot be treated as a linear expression then an exception is raised. In order to test this expression can be treated as linear, use function .GetMaxDegree() and check whether it returns 0 or 1. In the returned
System.Collections.Generic.KeyValuePair instances the constant term is indicated with a key of Optimizer.Objects.XpressProblem.NULL_VARIABLE. Note that depending on the actual expression class and its implementation, the terms may not be presented in the same order in which you added them. There may also be multiple elements with the same key (again depending on the implementation of the actual object).
(Overrides AbstractExpression.GetLinearView().) |
![]() |
GetMaxDegree |
Get the maximum degree of any of the terms/monomials that appear in the symbolic representation of all parenthesized sub-expressions are fully expanded. The maximum degree is
(Overrides Expression.GetMaxDegree().)
|
![]() |
GetQuadView |
Get a quadratic read-only view on this expression. If this expression can be treated as a quadratic expression then the function returns a readonly view on the quadratic terms (including the constant term and linear terms if there are any). If the expression cannot be treated as a linear expression then an exception is raised. In order to test this expression can be treated as quadratic, use function .GetMaxDegree() and check whether it returns 0, 1, or 2. In the returned
System.Collections.Generic.KeyValuePair instances the constant term is indicated with a key with two Optimizer.Objects.XpressProblem.NULL_VARIABLEs. Linear terms are represented by a
QPair with Optimizer.Objects.XpressProblem.NULL_VARIABLE as second variable. Note that depending on the actual expression class and its implementation, the terms may not be presented in the same order in which you added them. There may also be multiple elements with the same key (again depending on the implementation of the actual object).
(Overrides AbstractExpression.GetQuadView().) |
![]() |
GetRTTI |
Get runtime type identification.
(Overrides Expression.GetRTTI().) |
![]() |
GetType |
Gets the
Type of the current instance.
(Inherited from Object.) |
![]() |
In |
Create a range constraint that bounds this expression from below and above.
(Inherited from AbstractExpression.) |
![]() |
Leq(Double) |
Create a "less than or equal" constraint with this expression as left-hand side.
(Inherited from AbstractExpression.) |
![]() |
Leq(Expression) |
Create a "less than or equal" constraint with this expression as left-hand side.
(Inherited from AbstractExpression.) |
![]() ![]() |
LTerm(Variable) |
Convenience function to create a single linear term. Creates the term
1 * variable.
|
![]() ![]() |
LTerm(Variable, Double) |
Convenience function to create a single linear term.
|
![]() |
Minus(Double) |
Create a new expression that represents the difference of
this and
arg.
(Inherited from Expression.) |
![]() |
Minus(Expression) |
Create a new expression that represents the difference of
this and
arg.
(Inherited from Expression.) |
![]() |
Mul(Double) |
Create a new expression that represents the product of
this and
arg.
(Overrides Expression.Mul(Double).) |
![]() |
Mul(ConstantExpression) |
Create a new expression that represents the product of
this and
arg.
|
![]() |
Mul(Expression) |
Create a new expression that represents the product of
this and
arg.
(Overrides Expression.Mul(Expression).) |
![]() |
Mul(LinTerm) |
Create a new expression that represents the product of
this and
arg.
|
![]() |
Mul(Variable) |
Create a new expression that represents the product of
this and
arg.
|
![]() |
Plus(Double) |
Create a new expression that represents the sum of
this and
arg.
(Inherited from Expression.) |
![]() |
Plus(Expression) |
Create a new expression that represents the sum of
this and
arg.
(Inherited from Expression.) |
![]() |
Square |
Multiply this term by itself.
|
![]() |
ToString() | (Overrides Object.ToString().) |
![]() ![]() |
ToString(Variable, Double) |
Convert a linear term to a string. Note that while the
LinTerm class does not allow
XpressProblem.NULL_VARIABLE as variable, this function allows this variable to indicate constantterms.
|
![]() |
Uminus |
Create a new expression that represents the unary minus of this one.
(Overrides Expression.Uminus().) |
© 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.