01: // -------------------------------------------------------------------------- 02: // Licensed Materials - Property of IBM 03: // 04: // 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 05: // Copyright IBM Corporation 1998, 2013. All Rights Reserved. 06: // 07: // Note to U.S. Government Users Restricted Rights: 08: // Use, duplication or disclosure restricted by GSA ADP Schedule 09: // Contract with IBM Corp. 10: // -------------------------------------------------------------------------- 11: 12: int RollWidth = ...; 13: 14: 15: range Items = 1..5; 16: 17: int Size[Items] = ...; 18: float Duals[Items] = ...; 19: 20: dvar int Use[Items] in 0..100000; 21: 22: 23: minimize 24: 1 - sum(i in Items) Duals[i] * Use[i]; 25: subject to { 26: ctFill: 27: sum(i in Items) Size[i] * Use[i] <= RollWidth; 28: }