Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1186fd5
Fill in equality constraint Jacobian test
PhilipFackler Apr 16, 2026
2b1316e
Fix angle value and read base Jac from CSV
PhilipFackler Apr 17, 2026
8308d52
Add cicj test
PhilipFackler Apr 18, 2026
0df489f
Update cicj script and values
PhilipFackler Apr 23, 2026
5e9716d
Update cecj script and values
PhilipFackler Apr 23, 2026
f8191f3
Remove unwanted test parameters
PhilipFackler Apr 27, 2026
904803d
Apply pre-commmit fixes
PhilipFackler Apr 27, 2026
fa0f210
Add generated constraint Jacobian networks instead of using Python.
nkoukpaizan Oct 3, 2026
419873b
Fix inequality reference Jacobian scaling for multiple copies.
nkoukpaizan Oct 3, 2026
7b61c1d
Add inequality Jacobian test without line limits.
nkoukpaizan Oct 3, 2026
379c8de
Use argparse in equality Jacobian network generator.
nkoukpaizan Oct 3, 2026
0a0ee38
Rename MATLAB Jacobian scripts and fix gen_cicj.m.
nkoukpaizan Oct 3, 2026
3709f6a
Restore OPFLOW prefix in constraint Jacobian test names.
nkoukpaizan Oct 3, 2026
e01fea1
Clean up constraint Jacobian test drivers.
nkoukpaizan Oct 3, 2026
24f9b62
Run constraint Jacobian tests with HIOPSPARSE.
nkoukpaizan Oct 3, 2026
492f1f1
Remove hand-coded constraint Jacobian networks.
nkoukpaizan Oct 3, 2026
d713238
Clean up constraint Jacobian test drivers further.
nkoukpaizan Oct 3, 2026
bd4e851
Remove unused settings from Jacobian test CMake.
nkoukpaizan Oct 3, 2026
a938893
Document constraint Jacobian test inputs.
nkoukpaizan Oct 3, 2026
a01d23b
Keep CUDA language tagging for Jacobian drivers.
nkoukpaizan Oct 3, 2026
cf6d760
Restore passing network and reference files to constraint Jacobian te…
nkoukpaizan Oct 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions tests/unit/opflow/constraint_jacobian/equality/CECJ_unittest1.m

This file was deleted.

49 changes: 49 additions & 0 deletions tests/unit/opflow/constraint_jacobian/equality/CECJ_unittestx1.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
function mpc = CECJ_unittestx1
mpc.version = '2';
mpc.baseMVA = 100.00;

%% bus data
mpc.bus = [
1 1 0.00 0.00 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
2 1 0.00 0.00 0.25 -0.05 1 2.0000000 0.000000 138.00 1 1.100 0.900
3 3 0.00 0.00 0.00 0.00 1 2.0000000 30.000000 13.80 1 1.100 0.900
4 1 -3.40 8.80 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
5 1 0.00 0.00 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
];

%% generator data
mpc.gen = [
3 1.60 -2.20 9900.00 -9900.00 2.0000 100.00 1 1.60 1.60 0.00 0.00 0.00 0.00 0.00 0.00 0 0 0 0 10.0000
];

%% generator cost data
mpc.gencost = [
2 0 0 3 0.010 0.100 8.00 0.0000
];

%% branch data
mpc.branch = [
1 2 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
2 3 2.000000 1.000000 1.20000 0.00 0.00 0.00 2.00000 60.000 1 0.00 0.00 0.00 0.00 0.00 0.00
2 4 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
4 5 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
];

%% bus names
mpc.bus_name = {
'1';
'2';
'3';
'4';
'5';
};

%% Generator Unit Types
mpc.gentype = {
'UN';
};

%% Generator Fuel Types
mpc.genfuel = {
'unknown';
};
81 changes: 81 additions & 0 deletions tests/unit/opflow/constraint_jacobian/equality/CECJ_unittestx3.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
function mpc = CECJ_unittestx3
mpc.version = '2';
mpc.baseMVA = 100.00;

%% bus data
mpc.bus = [
1 1 0.00 0.00 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
2 1 0.00 0.00 0.25 -0.05 1 2.0000000 0.000000 138.00 1 1.100 0.900
3 3 0.00 0.00 0.00 0.00 1 2.0000000 30.000000 13.80 1 1.100 0.900
4 1 -3.40 8.80 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
5 1 0.00 0.00 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
6 1 0.00 0.00 0.25 -0.05 1 2.0000000 0.000000 138.00 1 1.100 0.900
7 2 0.00 0.00 0.00 0.00 1 2.0000000 30.000000 13.80 1 1.100 0.900
8 1 -3.40 8.80 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
9 1 0.00 0.00 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
10 1 0.00 0.00 0.25 -0.05 1 2.0000000 0.000000 138.00 1 1.100 0.900
11 2 0.00 0.00 0.00 0.00 1 2.0000000 30.000000 13.80 1 1.100 0.900
12 1 -3.40 8.80 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
13 1 0.00 0.00 0.00 0.00 1 2.0000000 0.000000 138.00 1 1.100 0.900
];

%% generator data
mpc.gen = [
3 1.60 -2.20 9900.00 -9900.00 2.0000 100.00 1 1.60 1.60 0.00 0.00 0.00 0.00 0.00 0.00 0 0 0 0 10.0000
7 1.60 -2.20 9900.00 -9900.00 2.0000 100.00 1 1.60 1.60 0.00 0.00 0.00 0.00 0.00 0.00 0 0 0 0 10.0000
11 1.60 -2.20 9900.00 -9900.00 2.0000 100.00 1 1.60 1.60 0.00 0.00 0.00 0.00 0.00 0.00 0 0 0 0 10.0000
];

%% generator cost data
mpc.gencost = [
2 0 0 3 0.010 0.100 8.00 0.0000
2 0 0 3 0.010 0.100 8.00 0.0000
2 0 0 3 0.010 0.100 8.00 0.0000
];

%% branch data
mpc.branch = [
1 2 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
2 3 2.000000 1.000000 1.20000 0.00 0.00 0.00 2.00000 60.000 1 0.00 0.00 0.00 0.00 0.00 0.00
2 4 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
4 5 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
5 6 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
6 7 2.000000 1.000000 1.20000 0.00 0.00 0.00 2.00000 60.000 1 0.00 0.00 0.00 0.00 0.00 0.00
6 8 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
8 9 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
9 10 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
10 11 2.000000 1.000000 1.20000 0.00 0.00 0.00 2.00000 60.000 1 0.00 0.00 0.00 0.00 0.00 0.00
10 12 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
12 13 2.000000 1.000000 1.20000 0.00 0.00 0.00 1.00000 0.000 1 0.00 0.00 0.00 0.00 0.00 0.00
];

%% bus names
mpc.bus_name = {
'1';
'2';
'3';
'4';
'5';
'6';
'7';
'8';
'9';
'10';
'11';
'12';
'13';
};

%% Generator Unit Types
mpc.gentype = {
'UN';
'UN';
'UN';
};

%% Generator Fuel Types
mpc.genfuel = {
'unknown';
'unknown';
'unknown';
};
Loading
Loading