GAMS and Gnuplot on Windows 2000
If you use Gnuplot utility created by Tom Rutherford, you can redirect the outputs from GAMS to Gnuplot and draw nice graphs. The utility is very useful but it can draw only one graph at a time (at leaset on my Windows 2000). So to open the new graph window, I must close the current one.
To open many graph windows, I use the following method.
First, create the following shell script named my-plot.sh and put it in the inclib directory under GAMS system directory.
# my-plot.sh pgnuplot $1 - & wait $! exit
where pgnuplot is the pipe program included in Gnuplot distribution.
Second, rewrite the final part of plot.gms file in the inclib directory.
$if %batch%=="yes" execute 'wgnupl32 gnuplot.plt'; $if %batch%=="no" execute 'wgnupl32 gnuplot.plt -';Rewrite this part to
$if %batch%=="yes" execute 'pgnuplot gnuplot.plt'; $if %batch%=="no" execute 'bash c:/GAMS20.0/inclib/my-plot.sh gnuplot.plt'
where c:/GAMS20.0/inclib/my-plot.sh is the full path to my-plot.sh.
This setting enables you to open many Gnuplot windows at the same time.
Note that this requires that bash is installed in your system. You
can download bash from here.