I poste here my constrain, wich is wrong (maybe).
subject to Restrektion_2_7{a in Aufsichtsperson,p in Prufungen,k in
Prufungen:p<>k and floor(n[p])=floor(n[k])}: x[a,p]+x[a,k]<= (if
(round(n[p]-floor(n[p]),4)+l[p]+0.01 >= round(n[k]-floor(n[k]),4)) then 1
else 2);
My goal: I have supervisors and exams. 1 supervisor can (at the same
day->floor(n[p])=floor(n[k]) ) supervise only one exam at the same time. so
if the end of the exam p is >= the beginning of the exam k then the person a
can supervise the exam p or k but not both. So what is wrong with my
constrain? I am sure it is something wrong because i get wrong solutions.
Pleas help me!
Thanks!
--
View this message in context: http://old.nabble.com/Constrain-wrong--wrong-solution-tp30523103p30523103.html
Sent from the AMPL mailing list archive at Nabble.com.
> --
> You received this message because you are subscribed to the Google Groups
> "AMPL Modeling Language" group.
> To post to this group, send email to am...@googlegroups.com.
> To unsubscribe from this group, send email to
> ampl+uns...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ampl?hl=en.
>
>
>
--
View this message in context: http://old.nabble.com/Constrain-wrong--wrong-solution-tp30523103p30531445.html