ILOG CPLEX 11.0 User's Manual > Discrete Optimization > Early Tardy Scheduling > Stating Precedence Constraints

In each job, activities must be processed one after the other. This order is enforced by the precedence constraints, which look like this:

 for(j = 0; j < nbJob; j++){
      for(i = 1; i < nbResource; i++){
        model.add(s[j][i] >= s[j][i-1] + duration[j][i-1]);
      }
    }