* @param flow unit flow costs
* @throws IloException if CPLEX is unhappy
*/
public SingleModel(int nW, int nC, double[] capacity, double[] demand,
double[] fixed, double[][] flow) throws IloException {
cplex = new IloCplex();
use = new IloNumVar[nW];
ship = new IloNumVar[nW][nC];
IloLinearNumExpr expr = cplex.linearNumExpr();
// declare the variables and simultaneously assemble the objective function
for (int i = 0; i < nW; i++) {