Plot in GAMS with gnuplot

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

Plot in GAMS with gnuplot

Postby imasteg » 1 month 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

 $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: 28
Joined: 9 months ago

Re: Plot in GAMS with gnuplot

Postby Renger » 1 month ago

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

Cheers
Renger


Return to “API”

Who is online

Users browsing this forum: No registered users and 1 guest