Changeset 2010 for trunk/Cbc/test/CInterfaceTest.c
 Timestamp:
 Feb 23, 2014 3:43:03 PM (5 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/test/CInterfaceTest.c
r2009 r2010 1 / / $Id$2 / /Copyright (C) 2014, International Business Machines3 //Corporation and others. All Rights Reserved.4 // This code is licensed under the terms of the Eclipse Public License (EPL). 1 /* $Id$ */ 2 /* Copyright (C) 2014, International Business Machines 3 Corporation and others. All Rights Reserved. 4 This code is licensed under the terms of the Eclipse Public License (EPL). */ 5 5 6 #include <coin/Cbc_C_Interface.h>6 #include "Cbc_C_Interface.h" 7 7 #include <assert.h> 8 8 #include <math.h> … … 13 13 Cbc_Model *model = Cbc_newModel(); 14 14 15 // Simple knapsack problem 16 // Minimize 5x[1]  3x[2]  2x[3]  7x[4]  4x[5] 17 // s.t. 2x[1] + 8x[2] + 4x[3] + 2x[4] + 5x[5] <= 10 18 // All x binary 15 /* Simple knapsack problem 16 Minimize 5x[1]  3x[2]  2x[3]  7x[4]  4x[5] 17 s.t. 2x[1] + 8x[2] + 4x[3] + 2x[4] + 5x[5] <= 10 18 All x binary 19 */ 19 20 20 21 CoinBigIndex start[] = {0, 1, 2, 3, 4, 5, 6};
Note: See TracChangeset
for help on using the changeset viewer.