Module org.maxicp

Interface CustomConstraint<C extends ConcreteModel,P extends ConcreteConstraint<C>>

Type Parameters:
C - type of concrete model
P - 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 Type
    Method
    Description
    instantiate(C concreteModel)
    Instantiate the modeling constraint into a concrete constraint

    Methods inherited from interface org.maxicp.modeling.Constraint

    scope
  • Method Details

    • instantiate

      P instantiate(C concreteModel)
      Instantiate the modeling constraint into a concrete constraint
      Parameters:
      concreteModel - model where the constraint must be added
      Returns:
      concrete constraint