|
GAMS run sequence |
Top Previous Next |
|
Further down in trancode is the section that runs GAMS. It consists of the lines below and is not likely to need to be changed by the user
'save the file ActiveWorkbook.Save ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "\excelincharge.XLS", FileFormat:= _ xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False savename = ActiveWorkbook.Name 'run the GAMS job 'define additional parameters to attach to GAMS Call params = "" 'now run gams lGAMSRet = GAMSrun(params, sGAMSFile) 'reload the file with the data passed from GAMS ActiveWorkbook.Save
This progresses through several steps
|