You are on page 1of 4

ADVANCE DIGITAL LOGIC

EEDG/CE 6301
HOWEWORK 4

PART II:
HW#4
CPLEX Code:
MAXIMIZE
OBJ: V1 + V2 + V3 + V4 + V5+V6
SUBJECT TO
c1: -V2+V1 <= 10
c2: - V1 + V2 <= 10
c3: - V3+V1 <= 16
c4: - V1 + V3 <= 16
c5: - V4+V1 <= 11
c6: - V1 + V4 <= 11
c7: - V5+V1 <= 10
c8: - V1 + V5 <= 10
c9: - V6+V1 <= 17
c10: - V1 + V6 <= 17
c11: - V3+V2 <= 9.5
c12: - V2 + V3 <= 9.5
c13: -V6+V2 <= 19.5
c14: - V2 + V6 <= 19.5
c15: - V6+V3 <= 12
c16: - V3 + V6 <= 12
c17: - V4+V3 <= 7
c18: - V3 + V4 <= 7
c19: - V5+V4 <= 8
c20: - V4 + V5 <= 8
c21: - V6+V4 <= 7
c22: - V4 + V6 <= 7

c23: - V6+V5 <= 9


c24: - V5 + V6 <= 9
BOUNDS
0 <= V1 <= 10
0 <= V2 <= 9.5
0 <= V3 <= 7
0 <= V4 <= 7
0 <= V5 <= 8
0 <= V6 <= 7
GENERALS
V1 V3 V4 V5 V6
END
I was unable to run CPLEX due to license issue. If license was given I could have run above
code and followed the given CPEX tutorial and run my MinimumTree.lp file
I tried to download free IBM CPLEX studio but was not allowed.
Also, I did try some online LP solver but it was not working
a) Different notation //not accepting bounds and end

b) less constraints allowed