/******************************************************** BCL Example Problems ==================== file xbburg.c ````````````` Burglar problem, binary variable formulation. (c) 2008-2023 Fair Isaac Corporation author: S.Heipcke, Jan. 2000, rev. Mar. 2011 ********************************************************/ #include #include "xprb.h" #define NItems 8 /* Number of items */ /****DATA****/ /* Item: 1 2 3 4 5 6 7 8 */ double VALUE[] = {15,100, 90, 60, 40, 15, 10, 1}; /* Value of items */ double WEIGHT[] = { 2, 20, 20, 30, 40, 30, 60, 10}; /* Weight of items */ double WTMAX = 102; /* Max weight allowed for haul */ int main(int argc, char **argv) { XPRBvar x[NItems]; XPRBctr cobj,ctr; int i; XPRBprob prob; prob=XPRBnewprob("Burglar"); /* Initialize a new problem in BCL */ /****VARIABLES****/ /* 1 if we take item i; 0 otherwise */ for(i=0;i