> Discrete Optimization > Early Tardy Scheduling > Creating Variables |
Creating Variables |
INDEX PREVIOUS NEXT |
The unknowns of the problem are the starting dates of the various activities. To represent these dates with Concert Technology modeling objects, the application creates a matrix of numeric variables (that is, instances of IloNumVar
) with bounds between 0 and Horizon
, where Horizon
is the maximum starting date for an activity that does not exclude interesting solutions of the problem. In this example, it is set arbitrarily at 10000.
NumVarMatrix s(env, nbJob); for(j = 0; j < nbJob; j++){ s[j] = IloNumVarArray(env, nbResource, 0, Horizon); } |
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |