|
A Delphi example |
Top Previous Next |
|
I have created a Delphi application which uses Kalvelagen's (http://www.gams.com/~erwin/interface/interface.html) Delphi interface plus some other routines (all of that is in the module gamsmod.pas which is within the file gamsrun.zip). The problem is a transportation example, which accepts input and then on command runs the GAMS model, and displays the answer. If you start up the file gamsrun.exe you will see the screen
This form that allows input for a simple transport model and is implemented in the module delphgam.pas which is within the file gamsrun.zip. After data are complete you can press the Run Model button. GAMS then executes and the screen is expanded with the solution as follows
|