Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality to extract reactive power costs #2465

Open
5 of 7 tasks
Paulnkk opened this issue Nov 27, 2024 · 0 comments
Open
5 of 7 tasks

Add functionality to extract reactive power costs #2465

Paulnkk opened this issue Nov 27, 2024 · 0 comments
Labels
OPF question Further information is requested

Comments

@Paulnkk
Copy link

Paulnkk commented Nov 27, 2024

Feature Checklist

Feature Type

  • Adding new functionality to pandapower

  • Changing existing functionality in pandapower

  • Removing existing functionality in pandapower

Problem Description

Hey,

I have an ieee 9-bus file with the following cost related data:

%% generator cost data																					
%	1	startup	shutdown	n	x1	y1	...	xn	yn												
%	2	startup	shutdown	n	c(n-1)	...	c0														
mpc.gencost = [																					
	2	1500	0	3	0.11	5	150;														
	2	2000	0	3	0.085	1.2	600;														
	2	3000	0	3	0.1225	1	335;														
	2	0	0	3	0.2	0	0;														
	2	0	0	3	0.05	0	0;														
	2	0	0	3	0.3	0	0;														
];	

Now I get this error:

File "/Users/PaulKandora/opt/anaconda3/envs/copopf/lib/python3.12/site-packages/pandapower/converter/matpower/from_mpc.py", line 100, in _m2ppc
    mpc_frames = CaseFrames(mpc_file)
                 ^^^^^^^^^^^^^^^^^^^^
  File "/Users/PaulKandora/opt/anaconda3/envs/copopf/lib/python3.12/site-packages/matpowercaseframes/core.py", line 65, in __init__
    self._update_index()
  File "/Users/PaulKandora/opt/anaconda3/envs/copopf/lib/python3.12/site-packages/matpowercaseframes/core.py", line 181, in _update_index
    self.gencost.set_index(pd.RangeIndex(1, len(self.gen.index) + 1),
  File "/Users/PaulKandora/opt/anaconda3/envs/copopf/lib/python3.12/site-packages/pandas/core/frame.py", line 6173, in set_index
    raise ValueError(
ValueError: Length mismatch: Expected 6 rows, received array of length 3

I assume that pandapower is unable to detect reactive power costs. Probably, it is possible to detect reactive power costs but I am not sure how.

Grateful for support here and best regards

Paul

Feature Description

Pandapower will be able to detect reactive power costs

Additional Context

No response

Label

  • Relevant labels are selected
@pawellytaev pawellytaev added OPF question Further information is requested labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OPF question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants