« Previous « Start » Next »
5 Test Routines in Non-Tomlab Format
A set of test routines have been defined illustrating the use
of the
cplex main routine.
The test routines and utilities are shown in
Table
2.
It is easy to call the test routines, e.g.
x = cpxtest1;
x = cpxtest2;
x = cpxtest3;
will call the three routines solving GAP problems. The
cpxaircrew test problem has no input parameters, just call:
cpxaircrew;
The knapsack test routine runs three test examples.
It is possible to change the cut strategy (second input parameter).
To run the second test example, using aggressive cuts, the call is
cpxKnaps(2,2);
The first parameter selects the test problem.
Calling without any parameters
cpxKnaps
is the same as the call
cpxKnaps(1,0);
Table 2: Test routines and utilities in non-Tomlab format.
|
Function |
Description |
Section |
|
abc2gap |
Utility to convert a Generalized Assignment Problem
(GAP) to standard form for CPLEX. |
B.2 |
cpxbiptest |
Test of three large binary integer linear
problems. |
C.2 |
cpxiptest |
Test of three large integer linear problems. |
C.3 |
cpxKnaps |
Test of knapsack problems. |
C.6 |
xptest1 |
Test of a Generalized Assignment Problem (GAP). |
C.8 |
cpxTest2 |
Test of the same GAP problem as cpxTest1,
but using sos1 variables. |
C.9 |
cpxTest3 |
Test of a Generalized Assignment Problem (GAP). |
C.10 |
|
« Previous « Start » Next »