-
Notifications
You must be signed in to change notification settings - Fork 4
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
Matpower conversion #26
Merged
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ deps/deps.jl | |
test/test-mixed-units.jl | ||
test/test-gmd-gic.jl | ||
test/gmd.log | ||
|
||
src/scratch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ Pajarito 0.4.2 | |
Gurobi | ||
|
||
Memento 0.5.0 | ||
|
||
PowerModels 0.7 0.8- | ||
InfrastructureModels 0.0.4 0.2- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
%% MATPOWER Case Format : Version 2 | ||
mpc.version = '2'; | ||
|
||
%%----- Power Flow Data -----%% | ||
%% system MVA base | ||
mpc.baseMVA = 100; | ||
|
||
%% bus data | ||
% bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin | ||
mpc.bus = [ | ||
1 1 0 0 0 0 1 1.100000 0.000000 765 1 1.3 0.7 | ||
2 1 0 0 0 0 1 1.100000 0.000000 765 1 1.3 0.7 | ||
3 1 1000 200 0 0 1 1.100000 0.000000 20 1 1.3 0.7 | ||
4 3 0 0 0 0 1 1.100000 0.000000 20 1 1 0.7 | ||
]; | ||
|
||
%% generator data | ||
% bus Pg Qg Qmax Qmin Vg mBase status Pmax Pmin Pc1 Pc2 Qc1min Qc1max Qc2min Qc2max ramp_agc ramp_10 ramp_30 ramp_q apf | ||
mpc.gen = [ | ||
4 0.0 0.0 2000.0 -2000.0 1.1 100 1 2000.0 0.0 0 0 0 0 0 0 0 0 0 -1000 0 | ||
]; | ||
|
||
%% branch data | ||
% fbus tbus r x b rateA rateB rateC ratio angle status angmin angmax | ||
mpc.branch = [ | ||
1 3 0.0001 0.004 0 9000.0 0.0 0.0 1 0.0 1 -29.999999999999996 29.999999999999996 | ||
1 2 0.000513 0.01 0 9000.0 0.0 0.0 1 0.0 1 -29.999999999999996 29.999999999999996 | ||
2 4 0.0001 0.004 0 9000.0 0.0 0.0 1 0.0 1 -29.999999999999996 29.999999999999996 | ||
]; | ||
|
||
%%----- OPF Data -----%% | ||
%% generator cost data | ||
% 1 startup shutdown n x1 y1 ... xn yn | ||
% 2 startup shutdown n c(n-1) ... c0 | ||
mpc.gencost = [ | ||
2 0 0 3 0.11 5.0 0 | ||
]; | ||
|
||
%column_names% parent_index g_gnd | ||
mpc.gmd_bus = [ | ||
1 5 | ||
2 5 | ||
1 0 | ||
2 0 | ||
3 0 | ||
4 0 | ||
]; | ||
|
||
%column_names% name | ||
mpc.gmd_bus_strings = { | ||
'dc_sub1' | ||
'dc_sub2' | ||
'dc_bus1' | ||
'dc_bus2' | ||
'dc_bus3' | ||
'dc_bus4' | ||
}; | ||
|
||
%column_names% f_bus t_bus parent_index br_status br_r br_v len_km | ||
mpc.gmd_branch = [ | ||
3 1 1 1 0.1 0 0 | ||
3 4 2 1 1.00073475 170.78806587354 170.78806587354 | ||
4 2 3 1 0.1 0 0 | ||
]; | ||
|
||
%column_names% name | ||
mpc.gmd_branch_strings = { | ||
'dc_xf1_hi' | ||
'dc_br1' | ||
'dc_xf2_hi' | ||
}; | ||
|
||
%column_names% hi_bus lo_bus gmd_br_hi gmd_br_lo gmd_k gmd_br_series gmd_br_common baseMVA | ||
mpc.branch_gmd = [ | ||
1 3 1 -1 1.793 -1 -1 100 | ||
1 2 -1 -1 0 -1 -1 100 | ||
2 4 3 -1 1.793 -1 -1 100 | ||
]; | ||
|
||
%column_names% type config | ||
mpc.branch_gmd_strings = { | ||
'xf' 'gwye-delta' | ||
'line' 'none' | ||
'xf' 'gwye-delta' | ||
}; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider touching up the output data writer to clean up the
-29.99999
values.