I want to make if the earn value is not same with the plan then choose alternative 2, if same then choose alternative 1. I used tuple mode to determine the 2 alternative in OPL using CP(constraint programming)
I still stuck until this part

```
**subject to {
  forall (p in Precedences, m in Modes) {
 alternative(Tasks[p], all(m in Modes: m.taskId==p.id) mode[m]);**

```

thanks, I need this part to finish my master thesis, because I don't have a basic about programming