Initializing help system before first use

# Inequality Class

A reference to an equation, inequality, or ranged row.
Inheritance Hierarchy
SystemObject
Optimizer.ObjectsInequality
Namespace: Optimizer.Objects
Assembly: xprsdn (in xprsdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
C#

    public sealed class Inequality : IIndex,
    	IComparable<Inequality>

The Inequality type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| ChgCoef(Variable, Double) | Change the coefficient for a variable in this row.
| ChgCoef(Variable, Variable, Double) | Change coefficient for a quadratic term in this row. If v1 and v2 are the same, then the diagonal coefficient for (v1,v2) is set to newCoef. Otherwise the off-diagonal coefficients for (v1,v2) and (v2,v1) to newCoef/2, each.
| ChgCoefs | Change the coefficients for multiple variables in this row.
| CompareTo | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
| Equals | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object))
| GetCallbackDual | Get the dual value value for this row from the solution associated with the current callback. Note: This function uses [!:Optimizer.XPRSprob.GetCallbackDuals(BoolHolder, double[], int, int)] under the hood. Note: Calling this function for multiple rows is not efficient. If you need to get values for multiple rows then consider using [!:Optimizer.Objects.XpressProblem.GetCallbackDuals()] to get the values for all rows and then use [!:.GetValue(double[])] to extract the value for a particular row.
| GetCallbackSlack | Get the slack value for this row from the solution associated with the current callback. Note: This function uses [!:Optimizer.XPRSprob.GetCallbackSlacks(BoolHolder, double[], int, int)] under the hood. Note: Calling this function for multiple rows is not efficient. If you need to get values for multiple rows then consider using [!:Optimizer.Objects.XpressProblem.GetCallbackSlacks()] to get the values for all rows and then use [!:.GetValue(double[])] to extract the value for a particular row.
| GetDual | Get the current dual value value for this row. Note: This function uses GetDuals(Int32, Double, Int32, Int32) under the hood. This is only valid to call if the `Optimizer.Objects.XpressProblem` instance owning this row is currently not under optimization. Note: Calling this function for multiple rows is not efficient. If you need to get values for multiple rows then consider using [!:Optimizer.Objects.XpressProblem.GetDuals()] to get the values for all rows and then use [!:.GetValue(double[])] to extract the value for a particular row. This strategy is also valid from callbacks.
| GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode)
| GetIndex | Get the index that this object has in the underlying model. Attention: this is a very advanced function. Use it only if you know exactly what you are doing.
| GetIndexForProb | Get the index stored in this object but raise an exception if the problem that created this object is not prob.
| GetLhs | Get the left-hand side of this inequality.
| GetName | Get the name of this object. Queries the problem instance that owns this object and returns the name from that instance.
| GetProblem | Get the problem to which this element belongs.
| GetRhs | Get the right-hand side for this row. Queries the Optimizer.Objects.XpressProblem instance to which this row belongs and returns the right-hand side from that instance.
| GetRhsRange | Get the right-hand side range for this row. Queries the Optimizer.Objects.XpressProblem instance to which this row belongs and returns the right-hand side range from that instance.
| GetSerial | Get the serial number of this object.
| GetSlack | Get the current slack value for this row. Note: This function uses GetSlacks(Int32, Double, Int32, Int32) under the hood. This is only valid to call if the `Optimizer.Objects.XpressProblem` instance owning this row is currently not under optimization. Note: Calling this function for multiple rows is not efficient. If you need to get values for multiple rows then consider using [!:Optimizer.Objects.XpressProblem.GetSlacks()] to get the values for all rows and then use [!:.GetValue(double[])] to extract the value for a particular row. This strategy is also valid from callbacks.
| GetType | Get the type for this row. Queries the Optimizer.Objects.XpressProblem instance to which this row belongs and returns the name obtained from that instance.
| GetValue | Get the value of this row from an array. The function assumes that data is an array that stores a value for each row in the underlying problem and returns the value from this array that corresponds to this row. data arrays can be obtained for example from prob.GetSlacks() or prob.GetCallbackSlacks().
| MarkDeleted |
| SetFormula | Set the formula for this inequality. Changes (only) the formula in this inequality to the specified formula. Any previously existing formula will be overwritten.
| SetName | Set the name of this inequality. Sets the name of this inequality in the problem instance that owns the object.
| SetRhs | Set the right-hand side for this row. Set the right-hand side in the Optimizer.Objects.XpressProblem instance to which this row belongs.
| SetRhsRange | Set the right-hand side range for this row. Sets the right-hand side range value in the Optimizer.Objects.XpressProblem instance to which this row belongs.
| SetType | Set the type for this row. Set the type in the Optimizer.Objects.XpressProblem instance to which this row belongs.
| ToString | Returns a string that represents the current object. (Inherited from Object)
| UpdateIndex | Add delta to this object's index.

Top
See Also

#### Reference

Optimizer.Objects Namespace
Covered Topics

- Inequality Methods

Parent Topic Optimizer.Objects

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