Home
last modified time | relevance | path

Searched refs:solitems (Results 1 – 5 of 5) sorted by relevance

/dports/math/SCIP/scip-7.0.3/tests/src/cons/knapsack/
H A Dsolveknapsackexactly.c36 static int solitems[MAX_ARRAYLEN]; variable
69 …SCIP_CALL( SCIPsolveKnapsackExactly(scip, nitems, weights, profits, capacity, items, solitems, non… in solveKnapsack()
152 cr_assert( solitems[0] == 0 );
153 cr_assert( solitems[1] == 4 );
179 cr_assert( (solitems[0] == 2 && solitems[1] == 3) || (solitems[0] == 3 && solitems[1] == 2) );
201 cr_assert( solitems[0] == 0 );
227 cr_assert( (solitems[0] == 0 && solitems[1] == 1) || (solitems[0] == 1 && solitems[1] == 0) );
307 cr_assert( checkSetContainment(&items[nitems/2], solitems, nitems / 2, nsolitems) );
308 cr_assert( checkSetContainment(&items[250], solitems, 250, nsolitems) );
H A Dsolveknapsackapprox.c32 static int* solitems; variable
73 solitems = NULL; in setup()
80 SCIP_CALL( SCIPallocMemoryArray(scip, &solitems, MEMSIZE) ); in setup()
86 cr_assert_not_null(solitems); in setup()
118 solitemsweight += weights[solitems[i]]; in testassignment()
119 solitemsprofit += profits[solitems[i]]; in testassignment()
137 …eKnapsackApproximately(scip, nitems, weights, profits, capacity, items, solitems, nonsolitems, &ns… in callAndTestSolveKnapsackApproximately()
150 SCIPfreeMemoryArray(scip, &solitems); in teardown()
/dports/math/SCIP/scip-7.0.3/src/scip/
H A Dcons_knapsack.h214 int* solitems, /**< array to store items in solution, or NULL */
235 int* solitems, /**< array to store items in solution, or NULL */
H A Dcuts.c6076 if( solitems != NULL ) in SCIPsolveKnapsackApproximatelyLT()
6104 if( solitems != NULL ) in SCIPsolveKnapsackApproximatelyLT()
6106 solitems[*nsolitems] = items[j]; in SCIPsolveKnapsackApproximatelyLT()
6119 if( solitems != NULL ) in SCIPsolveKnapsackApproximatelyLT()
6128 else if( solitems != NULL ) in SCIPsolveKnapsackApproximatelyLT()
6165 assert(solitems != NULL); in buildFlowCover()
6179 if( coefs[solitems[j]] == 1 ) in buildFlowCover()
6292 int* solitems; in getFlowCover() local
6640 SCIPfreeBufferArray(scip, &solitems); in getFlowCover()
6675 int* solitems; in getFlowCover() local
[all …]
H A Dcons_knapsack.c1096 if( solitems != NULL ) in SCIPsolveKnapsackExactly()
1124 if( solitems != NULL ) in SCIPsolveKnapsackExactly()
1130 if( solitems != NULL ) in SCIPsolveKnapsackExactly()
1136 if( solitems != NULL ) in SCIPsolveKnapsackExactly()
1239 if( solitems != NULL ) in SCIPsolveKnapsackExactly()
1348 if( solitems != NULL ) in SCIPsolveKnapsackExactly()
1469 if( solitems != NULL ) in SCIPsolveKnapsackExactly()
1565 if( solitems != NULL ) in SCIPsolveKnapsackApproximately()
1589 if( solitems != NULL ) in SCIPsolveKnapsackApproximately()
1596 if ( solitems != NULL ) in SCIPsolveKnapsackApproximately()
[all …]