Sub solve() |
This code implements the basic algorithm described above. |
Code to interrupt a long running GAMS job. The low-level code to handle the code-injection and the remote-thread management is implemented as a C DLL callable by VBA. |
Private Declare Function GamsInterrupt Lib "gamsinterrupt.dll" _ |
$if not set db $error db is not set set i 'cities'; |
Passing data from Access to GAMS is very easy with MDB2GMS. We can use this GAMS code to handle this. The %db% macro can be passed on to GAMS via the command line. |
The basic architecture as demonstrated in this mini-application has been used in several commercial systems.
Here are some examples: