Plot in GAMS with gnuplot

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
Posts: 1
Joined: 1 year ago

Plot in GAMS with gnuplot

Post by imasteg » 1 year ago

Dear all,

I'm new to GAMS and I'm trying to plot the resulting variables from an optimisation problem with the gnuplot

Code: Select all

, but I'm having difficulties with getting the plot I want.

My optimisation model looks like this:

Code: Select all

         i               battery /B1*B6/ 
         t               PTU     /1*96/

Positive variables
         e(i,t)             energy content
         pG(i,t)       G power
         PV(i,t)       Vpower 
	C		Costs
from the objective function I receive the optimal values of the positive variables and the variables. Now I would like to plot the energy content per PTU for each battery and do the same for the power. Can someone please help? I found several examples for the syntax of gnuplot, but I dont know how to apply it. Thank you in advance!

User avatar
Posts: 263
Joined: 2 years ago

Re: Plot in GAMS with gnuplot

Post by Renger » 1 year ago

You definitely do not provide enough information for us to help you. Please read the rules (


Post Reply