> Discrete Optimization > Transport: Piecewise Linear Optimization > Developing a Model > Adding an Objective |
Adding an Objective |
INDEX PREVIOUS NEXT |
The objective is to minimize costs of supplying cars from factories to showrooms, It is added to the model in these lines:
IloExpr obj(env); for(i = 0; i < nbSupply; i++){ obj += IloSum(y[i]); } model.add(IloMinimize(env, obj)); |
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |