hi all,
Need your suggestions. I have modelled the IEEE 33 bus system with some modifications.
i have encountered some problem.
(1) while running the code, one random error or warning is popping up. And some time same code is running properly without any error.
(2) i have modelled the storage in price dispatch mode. Individually it is working and giving the correct result but when i am redirecting it in master file, it is not solving the circuit. "Not solved status is showing".
This sounds like a Y primitive wrongly declared. In fact, I don't think the simulation is delivering the right results. You may be getting this error "random" due to an access issue or a division by 0. Would you mind to share with me a script reproducing this issue to provide better assistance?
Best regards,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've found several issues regarding the MATLAB and dss scripts. Please find the attached project with the files corrected. Use them as reference for future projects.
Dear Sir,
Thank you so much sir for you propmt reply. I will follow the correction suggested by you.
But the corrected script is also not working. I encounted two issues kindly help me as i am not getting any clue.
(1) I have added a monitor to check the voltages at the line end but plot is incorrect. i have attached the plot for your understanding of the problem.
(2) Matlab script is also not working properly. Showing the error as mentioned below.
"Index exceeds the number of array elements. Index must not exceed 1.
Error in InterCOM (line 28)
DSSText.Command= ['New monitor.' int2str(MonName) ' Generator.' myGens{idx} ' 1 1'];"
Dear Sir,
I tried to run the matlab file but it didnt worked. So i tried to run the master file (corrected by you) itself in opendss for time series analysis, it is not working. But when i am changing the generator G3 and G4 location (changing the bus number other than 11 & 15) then it is working properly. Here, i am unable to get the reason of this. Please help me as i am not getting any clue.
i have attached the code for your reference.
New PriceShape.Price interval=1 npts=24 price = [0.230, 0.190, 0.140, 0.120, 0.120, 0.130, 0.130, 0.140, 0.170, 0.220, 0.220, 0.220, 0.210, 0.220, 0.190, 0.180, 0.170, 0.230, 0.210, 0.220, 0.180, 0.170, 0.130, 0.120]
Set pricecurve=Price
New Generator.G2 Bus1=2 kV= 12.66 kW=2500 Vpu=1.0 model=3 Maxkvar=1000 Minkvar= 0 dispmode=price DispValue=0.154 !debugtrace=yes
New Generator.G3 Bus1=11 kV= 12.66 kW=1000 Vpu=1.0 model=3 Maxkvar=1000 Minkvar=0 dispmode=price DispValue=0.157 !debugtrace=yes
New Generator.G4 Bus1=15 kV= 12.66 kW=1000 Vpu=1.0 model=3 Maxkvar=500 Minkvar= 0 dispmode=price DispValue=0.218 !debugtrace=yes
New Generator.G5 Bus1=27 kV= 12.66 kW=1000 Vpu=1.0 model=3 Maxkvar=300 Minkvar= 0 dispmode=price DispValue=0.194 !debugtrace=yes
New Generator.GT6 Bus1=19 kV= 12.66 kW=1000 Vpu=1.0 model=1
New Generator.GT7 Bus1=31 kV= 12.66 kW=500 Vpu=1.0 model=1
regards,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know what you are doing and how are you doing it. Both examples provided above work, you just need to unzip, open the MATLAB script and hit the "Run" button. My last effort here will be to provide some advice:
Try to understand the MATLAB script, if you need additional learning resources there are several across the web.
Try to understand the OpenDSS model you have, the resources at https://opendss.epri.com/ are very informative.
Avoid doing the same thing several times when working with multiple scripts.
Make your script consistent.
Good luck.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi all,
Need your suggestions. I have modelled the IEEE 33 bus system with some modifications.
i have encountered some problem.
(1) while running the code, one random error or warning is popping up. And some time same code is running properly without any error.
(2) i have modelled the storage in price dispatch mode. Individually it is working and giving the correct result but when i am redirecting it in master file, it is not solving the circuit. "Not solved status is showing".
Kindly help me.
Last edit: ankita singh 2025-01-23
Hello
This sounds like a Y primitive wrongly declared. In fact, I don't think the simulation is delivering the right results. You may be getting this error "random" due to an access issue or a division by 0. Would you mind to share with me a script reproducing this issue to provide better assistance?
Best regards,
Dear Sir,
I have shared all the files for your better understanding of the problem.
Thanks,
Hello,
I've found several issues regarding the MATLAB and dss scripts. Please find the attached project with the files corrected. Use them as reference for future projects.
Good luck,
Dear Sir,
Thank you so much sir for you propmt reply. I will follow the correction suggested by you.
But the corrected script is also not working. I encounted two issues kindly help me as i am not getting any clue.
(1) I have added a monitor to check the voltages at the line end but plot is incorrect. i have attached the plot for your understanding of the problem.
(2) Matlab script is also not working properly. Showing the error as mentioned below.
"Index exceeds the number of array elements. Index must not exceed 1.
Error in InterCOM (line 28)
DSSText.Command= ['New monitor.' int2str(MonName) ' Generator.' myGens{idx} ' 1 1'];"
Kindly help me.
Regards,
Good luck,
Dear Sir,
I tried to run the matlab file but it didnt worked. So i tried to run the master file (corrected by you) itself in opendss for time series analysis, it is not working. But when i am changing the generator G3 and G4 location (changing the bus number other than 11 & 15) then it is working properly. Here, i am unable to get the reason of this. Please help me as i am not getting any clue.
i have attached the code for your reference.
New PriceShape.Price interval=1 npts=24 price = [0.230, 0.190, 0.140, 0.120, 0.120, 0.130, 0.130, 0.140, 0.170, 0.220, 0.220, 0.220, 0.210, 0.220, 0.190, 0.180, 0.170, 0.230, 0.210, 0.220, 0.180, 0.170, 0.130, 0.120]
Set pricecurve=Price
New Generator.G2 Bus1=2 kV= 12.66 kW=2500 Vpu=1.0 model=3 Maxkvar=1000 Minkvar= 0 dispmode=price DispValue=0.154 !debugtrace=yes
New Generator.G3 Bus1=11 kV= 12.66 kW=1000 Vpu=1.0 model=3 Maxkvar=1000 Minkvar=0 dispmode=price DispValue=0.157 !debugtrace=yes
New Generator.G4 Bus1=15 kV= 12.66 kW=1000 Vpu=1.0 model=3 Maxkvar=500 Minkvar= 0 dispmode=price DispValue=0.218 !debugtrace=yes
New Generator.G5 Bus1=27 kV= 12.66 kW=1000 Vpu=1.0 model=3 Maxkvar=300 Minkvar= 0 dispmode=price DispValue=0.194 !debugtrace=yes
New Generator.GT6 Bus1=19 kV= 12.66 kW=1000 Vpu=1.0 model=1
New Generator.GT7 Bus1=31 kV= 12.66 kW=500 Vpu=1.0 model=1
regards,
Hello,
I don't know what you are doing and how are you doing it. Both examples provided above work, you just need to unzip, open the MATLAB script and hit the "Run" button. My last effort here will be to provide some advice:
Good luck.