Steps in application development

Top  Previous  Next

The Delphi implementation is similar in concept to the Visual Basic implementation and involves the steps

I.Develop the underlying GAMS model (trandelp.gms)
a.Initially set it up as a stand alone model.
b.Once the stand alone model works, then convert the program so its gets its data from CSV files (in the example these are named supplyset.csv, demandset.csv, supplytbl.csv, demandtbl.csv, distancetbl.csv).
c.Develop a put file in CSV format that contains all the information one would want in the Delphi program (output.csv).  Place the modelstat in the last row.
II.Develop a Delphi program which when told to run GAMS writes data to be passed to GAMS in CSV format which can also read CSV output from GAMS put files.
III.Develop the rest of the Delphi implementation to support the application.

The procedure is implemented in the gamsrun project in the delphgam.pas code and executes when the run button (button1) is pressed all of which is within the file gamsrun.zip.