Manipulatiing parameters - Assignment problem due to different dimension
Posted: Sun Mar 17, 2019 10:59 pm
Hi,
I'm having trouble assigning values. For example I have several files and every file represents a sation which meassures windspeed. These files look like this:
Then I have other files where power is assigned to speed depending on the generator type
Now I want to calculate the power output for every station at each day and time and for a specific typ, so the gdx file should look something like this:
My code is attached, but it won't work (error - dimension different).
Thanks in advanced for your help.
Jason
PS: If someone happen to know if there is an easy way to read several input files(or could point me in the right direction) I would appreciate it too. I've read about the Put Writing Facility, but at first impression it was not very intuitive. I was thinking more of a simple loop, but that doesn't seem to work or at least I dont know how.
I'm having trouble assigning values. For example I have several files and every file represents a sation which meassures windspeed. These files look like this:
Code: Select all
Station;Date;Time; SP
34;2017-09-12;0000; 2.5
34;2017-09-12;0010; 6.1
34;2017-09-12;0020; 3.0
...
Code: Select all
type;Speed;Power
1; 0 ;0
1; 0.1 ;0
...
1; 2.9 ;0
1; 3 ;100
1; 3.1 ;211
...
1; 34.9 ;4000
1; 35 ;0
1; 35.1 ;0
...
Code: Select all
i;j;k;t; value
34;2017-09-12;0000; 1; 0
34;2017-09-12;0010; 1; 1050
34;2017-09-12;0020; 1; 100
...
34;2017-09-12;0000; 2; 0
34;2017-09-12;0010; 2; 2111
34;2017-09-12;0020; 2; 300
Thanks in advanced for your help.
Jason
PS: If someone happen to know if there is an easy way to read several input files(or could point me in the right direction) I would appreciate it too. I've read about the Put Writing Facility, but at first impression it was not very intuitive. I was thinking more of a simple loop, but that doesn't seem to work or at least I dont know how.