GeneralConstraint.Definition
- java.lang.Object
-
- com.dashoptimization.objects.ConstraintDefinition<GeneralConstraint>
-
- com.dashoptimization.objects.GeneralConstraint.Definition
-
- Enclosing class:
- GeneralConstraint
public static final class GeneralConstraint.Definition extends ConstraintDefinition<GeneralConstraint>
Definition of a general constraint. Instances of this class describe a constraint that has not yet been added but can be added usingXpressProblem.addConstraint()
orXpressProblem.addConstraints()
. Users should usually not have to deal with this class explicitly.- Since:
- 43.00
-
-
Constructor Summary
Constructor Description Definition(Variable resultant, XPRSenumerations.GenConsType type, Variable... variables)
Create a new general constraint description.Definition(Variable resultant, XPRSenumerations.GenConsType type, Variable[] variables, double[] values)
Create a new general constraint description.Definition(Variable resultant, XPRSenumerations.GenConsType type, Variable[] variables, double[] value, java.lang.String name)
Create a new general constraint description.Definition(Variable resultant, XPRSenumerations.GenConsType type, java.lang.Iterable<Variable> variables, java.lang.Iterable<java.lang.Double> value, java.lang.String name)
Create a new general constraint description.Definition(Variable resultant, XPRSenumerations.GenConsType type, java.util.stream.Stream<Variable> variables, java.lang.String name)
Create a new general constraint description.Definition(Variable resultant, XPRSenumerations.GenConsType type, java.util.stream.Stream<Variable> variables, java.util.stream.DoubleStream value, java.lang.String name)
Create a new general constraint description.Definition(Variable resultant, XPRSenumerations.GenConsType type, java.util.stream.Stream<Variable> variables, java.util.stream.Stream<java.lang.Double> value, java.lang.String name)
Create a new general constraint description.
-
Method Summary
Modifier and Type Method Description GeneralConstraint.Definition
setName(java.lang.String newName)
Set the name of the constraint.-
Methods inherited from class com.dashoptimization.objects.ConstraintDefinition
getName, setConstraintName
-
-
-
-
Constructor Detail
-
Definition
public Definition(Variable resultant, XPRSenumerations.GenConsType type, java.util.stream.Stream<Variable> variables, java.util.stream.Stream<java.lang.Double> value, java.lang.String name)
Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem'saddConstraint
function.- Parameters:
-
resultant
- The resultant variable. -
type
- Type of constraint. -
variables
- The variables in the general constraint. May benull
. -
value
- The values in the general constraint. May benull
. -
name
- The name of the general constraint. May benull
. - Since:
- 43.00
-
Definition
public Definition(Variable resultant, XPRSenumerations.GenConsType type, java.util.stream.Stream<Variable> variables, java.lang.String name)
Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem'saddConstraint
function.- Parameters:
-
resultant
- The resultant variable. -
type
- Type of constraint. -
variables
- The variables in the general constraint. May benull
. -
name
- Constraint name. May benull
. - Since:
- 43.00
-
Definition
public Definition(Variable resultant, XPRSenumerations.GenConsType type, Variable... variables)
Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem'saddConstraint
function.- Parameters:
-
resultant
- The resultant variable. -
type
- Type of constraint. -
variables
- The variables in the general constraint. May benull
. - Since:
- 43.00
-
Definition
public Definition(Variable resultant, XPRSenumerations.GenConsType type, Variable[] variables, double[] values)
Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem'saddConstraint
function.- Parameters:
-
resultant
- The resultant variable. -
type
- Type of constraint. -
variables
- The variables in the general constraint. May benull
. -
values
- The values in the general constraint. May benull
. - Since:
- 43.00
-
Definition
public Definition(Variable resultant, XPRSenumerations.GenConsType type, java.util.stream.Stream<Variable> variables, java.util.stream.DoubleStream value, java.lang.String name)
Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem'saddConstraint
function.- Parameters:
-
resultant
- The resultant variable. -
type
- Type of constraint. -
variables
- The variables in the general constraint. May benull
. -
value
- The values in the general constraint. May benull
. -
name
- The name of the general constraint. May benull
. - Since:
- 43.00
-
Definition
public Definition(Variable resultant, XPRSenumerations.GenConsType type, Variable[] variables, double[] value, java.lang.String name)
Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem'saddConstraint
function.- Parameters:
-
resultant
- The resultant variable. -
type
- Type of constraint. -
variables
- The variables in the general constraint. May benull
. -
value
- The values in the general constraint. May benull
. -
name
- The name of the general constraint. May benull
. - Since:
- 43.00
-
Definition
public Definition(Variable resultant, XPRSenumerations.GenConsType type, java.lang.Iterable<Variable> variables, java.lang.Iterable<java.lang.Double> value, java.lang.String name)
Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem'saddConstraint
function.- Parameters:
-
resultant
- The resultant variable. -
type
- Type of constraint. -
variables
- The variables in the general constraint. May benull
. -
value
- The values in the general constraint. May benull
. -
name
- The name of the general constraint. May benull
. - Since:
- 43.00
-
-
Method Detail
-
setName
public GeneralConstraint.Definition setName(java.lang.String newName)
Set the name of the constraint. This is the same asConstraintDefinition.setConstraintName(String)
but with a different return type.- 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.