# Question

From: FAROUK AMINU <f.aminu_at_lancaster.ac.uk>
Date: Sat 21 Oct 2000 04:07:09 PM GMT
Message-ID: <Pine.GSO.4.21.0010211650440.57-100000@unixa.lancs.ac.uk>
```Hi everyone!

I have been trying to solve a problem of the following nature:

Given [V1, V2, V3]::1..3, alldifferent([V1, V2, V3]),

I  have costs C12, C13, C21, C23, C31, C32. I wish to have final costs,
C1, C2, C3 such that,

if V1 = 1, V2 = 2, V3 = 3, then C1 = 0 + Const,
C2 = C1 + C12, C3 = C2 + C23.

But if V1 = 3, V2 = 1, V3 = 2 then C3 = 0 + const, C1 = C3 + C31, C2 = C1
+ C12.

If V1 = 2, V2 = 3, V3 = 1, then C2 = 0 + const, C3 = C2 + C23, C1 = C3 +
C31.

In essence, the additions are done based on which variable is assigned
which value. kindly help as this has been a very difficult thing for me to
do for the last three weeks.

Thanking 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)
```
Received on Sat Oct 21 17:11:05 2000

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:06 PM GMT GMT