Welcome to Pyomo Discussions! #1
Replies: 2 comments 1 reply
-
I am currently working on a Power System Medium-term Operation Planning Model and I am facing some difficulties in transferring my data from GAMS to a CSV file. The raw data consists of parameters that depend on three indexes, and I am not sure how to properly format the CSV file. I have attached an image of the parameter defined in GAMS for reference. I believe that in order for the data to work effectively in Pyomo, I will need to add an additional column (fes.n5) to the CSV file. I would appreciate any assistance or guidance you can provide in regards to creating the CSV file. Thank you for your time and consideration. Best regards, Juan |
Beta Was this translation helpful? Give feedback.
-
Hi, I hope you can help me to solve this optimization problem: Is it possible to work pyomo network with multiperiod optimization? Firstly I declared a block with certain variables for the whole m.date, afterward (here comes the issue) I am trying to declare an extensive port (because I am splitting the stream later in the problem), but it is not possible for me to define correctly the port, here is the code: This is what I am doing: #block of 3 variables:
#1st attempt. I declared the port as follows but the output is a list of the same first period date variable:
this is the output and it is not correct:
The output should be: #2nd attempt: I declared the port and later the function add, but it replaces all the data therefore the output is a 1 output size port:
Output: #3rd attempt: I declare a function for the port for each m.date as an iterable, however the error indicates not iterable
TypeError: 'function' object is not iterable Any suggestions are highly appreciated! |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions