Page 1 of 1

Plot in GAMS with gnuplot

Posted: Mon Jun 12, 2017 2:19 pm
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!

Re: Plot in GAMS with gnuplot

Posted: Tue Jun 13, 2017 2:25 pm
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