ConstraintDefinition
Base class for all constraints. More...
#include <xpress_objects.hpp>
Public Member Functions |
|
virtual auto | getName () const -> std::optional< std::string > |
Get the name of this constraint. |
|
virtual auto | setConstraintName (std::optional< std::string > newName) -> ConstraintDefinition< C > &final |
Set the name of this constraint. |
|
Detailed Description
class xpress::objects::ConstraintDefinition< C >
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 the getName()
and setName()
functions in this class.
- Since
- 44.00
Member Function Documentation
getName()
|
inlinevirtual |
Get the name of this constraint.
- Returns
- The name of this constraint.
- Since
- 44.00
Reimplemented in xpress::objects::IndicatorDescription.
setConstraintName()
|
inlinefinalvirtual |
Set the name of this constraint.
- Parameters
-
newName New name.
- Returns
- Always returns this instance.
- Since
- 44.00
The documentation for this class was generated from the following file:
- xpress_objects.hpp
© 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.