> Tutorials > Callable Library Tutorial > How ILOG CPLEX Works > Populating the Problem Object |
Populating the Problem Object |
INDEX
![]() |
The problem object instantiated by CPXcreateprob
represents an empty problem that contains no data; it has zero constraints, zero variables, and an empty constraint matrix. This empty problem object must be populated with data. This step can be carried out in several ways.
CPXcopylp
to copy the data into the problem object. (For example, see Building and Solving a Small LP Model in C .)
CPXnewcols
, CPXnewrows
, CPXaddcols
, CPXaddrows
, and CPXchgcoeflist
; these routines may be called in any order that is convenient. (For example, see Adding Rows to a Problem: Example lpex3.c .)
CPXreadcopyprob
to read the file and copy the data into the problem object. (For example, see Reading a Problem from a File: Example lpex2.c .)
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |