Module org.maxicp
Package org.maxicp.modeling
Interface CustomConstraint<C extends ConcreteModel,P extends ConcreteConstraint<C>>
- Type Parameters:
C- type of concrete modelP- type of concrete constraint
- All Superinterfaces:
Constraint
public interface CustomConstraint<C extends ConcreteModel,P extends ConcreteConstraint<C>>
extends Constraint
This class should be used to implement custom constraints.
It is responsible for instantiating a constraint into a constraint understandable by a given ConcreteModel
-
Method Summary
Modifier and TypeMethodDescriptioninstantiate(C concreteModel) Instantiate the modeling constraint into a concrete constraintMethods inherited from interface org.maxicp.modeling.Constraint
scope
-
Method Details
-
instantiate
Instantiate the modeling constraint into a concrete constraint- Parameters:
concreteModel- model where the constraint must be added- Returns:
- concrete constraint
-