|
From: FAROUK A. <f....@la...> - 2000-10-11 14:58:09
|
Dear All!
Can someone please help and forward suggestions on how I might be able to
put a constraint to the following situation?
I have variables, say, Vars = [A1, A2, A3, A4, A5],
Vars::1..5,
alldifferent(Vars),
with penalties depending on the way the numberings are done. For example,
if the numbering is 1,2,3,4,5 respectively then,
P1 = 0 + COST1,
P2 = P1 + COST2,
.
.
.
P5 = P4 + COST5,
But if the numbering changes to 1,3,2,5,4 then
P1 = 0 + COST1,
P3 = P1 + COST3,
P2 = P3 + COST2,
P5 = P2 + COST5,
P4 = P5 + COST4,
That means the values for the Pis is dependent on the values assigned to
the Ais. Please kindly help!
with best regards to you all!
Farouk
===============================================================================
UMARU FAROUK AMINU
DEPARTMENT OF MANAGEMENT SCIENCE
LANCASTER UNIVERSITY
LANCASTER
LA1 4YX
U.K.
+44 (0)1524 593865 (School)
+44 (0)1524 383619 (Home)
+44 (0)1524 844885 (Fax)
|