/******************************************************** BCL Example Problems ==================== file xbworks.c `````````````` Workshop planning example. (c) 2008-2024 Fair Isaac Corporation author: S.Heipcke, Jan. 2000, rev. Mar. 2011 ********************************************************/ #include #include "xprb.h" #define NProd 2 /* Number of products */ #define NShop 3 /* Number of workshops */ #define WMAX 40 /* Maximum weekly working time */ /****DATA****/ int DUR[][NShop] = {{5, 9, 7}, /* Duration of product p on shop s */ {10, 2, 5}}; int RES[] = {10, 8}; /* Man hours per unit */ int PRICE[] = {108, 84}; /* Selling price per unit */ /***********************************************************************/ int main(int argc, char **argv) { int p,s; XPRBctr c; XPRBvar x[NProd]; /* Amount of product p */ XPRBprob prob; prob=XPRBnewprob("Workshop"); /* Initialize a new problem in BCL */ /****VARIABLES****/ for(p=0;p