ConstraintDefinition
- java.lang.Object
-
- com.dashoptimization.objects.ConstraintDefinition<C>
-
- Direct Known Subclasses:
-
GeneralConstraint.Definition
,IndicatorDescription
,Inequality.Definition
,PWL.Definition
,SOS.Definition
public abstract class ConstraintDefinition<C extends Index> extends java.lang.Object
Base class for all constraints. This is a mostly opaque class that usually is short-lived and only saves as data container during the creation of constraints. One thing that is common to all constraints in Xpress is that they have a name. This property is accesible from thegetName()
andsetName()
functions in this class.- Since:
- 43.00
-
-
Method Summary
Modifier and Type Method Description java.lang.String
getName()
Get the name of this constraint.ConstraintDefinition<C>
setConstraintName(java.lang.String newName)
Set the name of this constraint.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of this constraint.- Returns:
- The name of this constraint.
- Since:
- 43.00
-
setConstraintName
public final ConstraintDefinition<C> setConstraintName(java.lang.String newName)
Set the name of this constraint.- Parameters:
-
newName
- New name. - Returns:
- Always returns this instance.
- Since:
- 43.00
-
-
© 2001-2024 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.