home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / math / lindo.zip / TEST4.DAT < prev    next >
Text File  |  1991-07-27  |  826b  |  24 lines

  1. BAT
  2. !  A shipping company wants to load a shipping container to maxmimize
  3. !  the freight charges it can bill.  There is  a cubic space constraint
  4. !  of 1000 sq ft, and a weight limit of 1200 pounds.
  5. !
  6. !    X<i> = 1 if parcel <i> in included in the container, else 0.
  7. !  
  8. MAX 77 X1 + 6 X2 + 3 X3 + 6 X4 + 33 X5 + 13 X6 + 110 X7 + 21 X8 + 47 X9
  9. !
  10. SUBJECT TO
  11. !
  12. SPACE)  774 X1 + 76 X2 +  22 X3 + 42 X4 + 21 X5 + 760 X6
  13.       + 818 X7 + 62 X8 + 785 X9                          <=   1000
  14. WEIGHT)  67 X1 + 27 X2 + 794 X3 + 53 X4 + 234 X5 + 32 X6
  15.       + 792 X7 + 97 X8 + 435 X9                          <=   1200
  16. END  
  17. INT 9
  18. !
  19. ! Type "GO" to solve the model. The best integer solution should have
  20. ! an objective value of 170. To view the best solution type "SOLU"
  21. ! after optimization has finished.
  22. BAT
  23. LEAVE
  24.