Plot in GAMS with gnuplot

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

Plot in GAMS with gnuplot

Post by imasteg »

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

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

My optimisation model looks like this:

Code: Select all

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

Positive variables
         e(i,t)             energy content
         pG(i,t)       G power
         PV(i,t)       Vpower 
Variables 
	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
Renger
Posts: 639
Joined: 7 years ago

Re: Plot in GAMS with gnuplot

Post by Renger »

Hi
You definitely do not provide enough information for us to help you. Please read the rules (https://forum.gamsworld.org/app.php/rules)

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply