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: 46.01.02+e8d9493ad804415424ae931ce2abaeb6c55a6d5a
Syntax
C#

    public sealed class Inequality : IIndex,
    	IComparable<Inequality>

The Inequality type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| ChgCoef | Change the coefficient for a variable in this row.
| 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 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 to get the values for all rows and then use 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 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 to get the values for all rows and then use to extract the value for a particular row.
| GetDual | Get the current dual value value for this row. Note: This function uses 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 to get the values for all rows and then use 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 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 to get the values for all rows and then use 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 |
| 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.