Index
- com.dashoptimization.objects.Index
-
- All Known Implementing Classes:
-
GeneralConstraint
,Inequality
,PWL
,SOS
,Variable
public interface Index
Base class for objects that represent an indexed item in anXpressProblem
.- Since:
- 43.00
-
-
Method Summary
Modifier and Type Method Description int
getIndex()
Get the index that this object has in the underlying model.int
getIndexForProb(XpressProblem xprob)
Get the index stored in this object but raise an exception if the problem that created this object is notprob
.java.lang.String
getName()
Get the name of this object.XpressProblem
getProblem()
Get the problem to which this element belongs.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get the name of this object. Queries the problem instance that owns this object and returns the name from that instance.- Returns:
- The name of this object.
- Since:
- 43.00
-
getIndex
int 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.Used in these examples:
- GlobalObjectiveParametrics
- GlobalRHSParametrics
- Returns:
- The index of this object in the underlying model.
- Since:
- 43.00
-
getIndexForProb
int getIndexForProb(XpressProblem xprob)
Get the index stored in this object but raise an exception if the problem that created this object is notprob
.- Parameters:
-
xprob
- The problem for which the index is queried. If this object does not belong toprob
then an execption is raised. - Returns:
-
The low-level index for this object in
prob
. - Since:
- 43.00
-
getProblem
XpressProblem getProblem()
Get the problem to which this element belongs.- Returns:
-
The problem to which this element belongs. This will be
null
if the element was deleted. - Since:
- 43.00
-
-
© 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.