|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.Reformulation
public class Reformulation
User : cprudhom
Mail : cprudhom(a)emn.fr
Date : 24 f�vr. 2010
Since : Choco 2.1.1
A class for reformulated constraints.
Constructor Summary | |
---|---|
Reformulation()
|
Method Summary | |
---|---|
static Constraint[] |
among(IntegerVariable[] variables,
SetVariable s,
IntegerVariable nvar)
AMONG constraint reformulated like: introducing BOOL variable for each VARIABLE, adding following constraints: for each VARIABLE : REIFIED(BOOL_i, MEMBER(VARIABLE_i, S)), EQ(SUM(BOOL), N), |
static Constraint[] |
among(IntegerVariable nvar,
IntegerVariable[] variables,
int[] values)
AMONG constraint reformulated like: introducing BOOL variable for each VARIABLE, adding following constraints: for each VARIABLE : REIFIED(BOOL_i, AMONG(VARIABLE_i, VALUES)), EQ(SUM(BOOL), N), |
static Constraint[] |
disjunctive(TaskVariable[] clique,
String... boolvarOptions)
AMONG constraint reformulated like: introducing BOOL variable for each VARIABLE, adding following constraints: for each VARIABLE : REIFIED(BOOL_i, AMONG(VARIABLE_i, VALUES)), EQ(SUM(BOOL), N), |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Reformulation()
Method Detail |
---|
public static Constraint[] among(IntegerVariable[] variables, SetVariable s, IntegerVariable nvar)
variables
- scope variables
- set variable, containing values to countnvar
- integer variable counter
public static Constraint[] among(IntegerVariable nvar, IntegerVariable[] variables, int[] values)
nvar
- counter variablevariables
- counted variablesvalues
- array of values
public static Constraint[] disjunctive(TaskVariable[] clique, String... boolvarOptions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |