|
Interactive mode |
Top Previous Next |
|
When Xls2gms.exe is executed without arguments one receives the screen
In turn, if one specifies use of the spreadsheet tran.xls, and the range sheet1!a1:d3 one addresses the spreadsheet area below
and the program generates an include file as follows
* ----------------------------------------------------- * Xls2gms Version 1.5, August 2002 * Erwin Kalvelagen, GAMS Development Corp. * ----------------------------------------------------- * Application: Microsoft Excel * Version: 9.0 * Workbook: C:\gams\gamspdf\bigone\tran.xls * Sheet: Sheet1 * Range: $A$1:$D$3 * ----------------------------------------------------- new-york chicago topeka seattle 25 17 18 san-diego 25 18 14 *-----------------------------------------------------
This file in turn can be included into GAMS at compile time or at execution time via GDX and the GAMS to GAMS trick discussed below. Note while the data are output in Table format, the table statement is not present. Thus the user needs to supply it either in the GAMS file or it can be typed above the table in the spreadsheet and Xls2gms will copy it. In particular Xls2gms copies all entries longer than 30 columns verbatim into the GMS file (see the resource.xls example as imported by Xl2gmsresource.gms as discussed below). There are a number of options in Xls2gms that merit mention
new-york chicago topeka seattle 25 17 18 san-diego 25 18 14
|