add the performance

8 views
Skip to first unread message

gehad mostafa

unread,
Nov 28, 2016, 1:53:07 PM11/28/16
to AMPL Modeling Language
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

Robert Fourer

unread,
Nov 29, 2016, 10:30:44 AM11/29/16
to am...@googlegroups.com
This seems like basically a modeling question. You need to figure out what are the algebraic expressions for the objective and constraints that you want. After that you can consider how to put the expressions into AMPL and choose an appropriate solver.

Bob Fourer
am...@googlegroups.com

=======
Reply all
Reply to author
Forward
0 new messages