hi guys,
this is my model's objective
minimize utilized_worker:
sum {i in I} y[i];
where y is 1 when worker i is chosen.
now I wanna add the performance p[i] to the objective and make it choose workers who the avg of their performance is 3 how can I write in ampl
for example if the givin data for performance as follow:
p[i] :=
1 2
2 1
3 3
4 2