Skip to content

Commit f2e8178

Browse files
committed
kernel_restart added.
1 parent 2a80737 commit f2e8178

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

test_kernel_restart.ipynb

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"metadata": {
3+
"language": "Julia",
4+
"name": "",
5+
"signature": "sha256:60b531629da1cbbd44cc6fef0eead494852ecf47da16a080398cf72c44ca06cc"
6+
},
7+
"nbformat": 3,
8+
"nbformat_minor": 0,
9+
"worksheets": [
10+
{
11+
"cells": [
12+
{
13+
"cell_type": "code",
14+
"collapsed": false,
15+
"input": [
16+
"using DataFrames, HDF5, JLD, Makeps, ACPowerFlow, ACSIMSEP, Optim\n",
17+
"\n",
18+
"# user input to the code\n",
19+
"verbose = true\n",
20+
"PartFactFlag = false\n",
21+
"PolarFlag = true\n",
22+
"ps = load(\"data/case6ww_ps_2.jld\")[\"ps\"]\n",
23+
"ps.shunt[[4:6],[:P,:Q]] = 210.\n",
24+
"ps.branch[23,:status] = false\n",
25+
"\n",
26+
"not_converged = ACPowerFlow.acpf!(ps, PartFactFlag = PartFactFlag)\n",
27+
"\n",
28+
"beta, beta_P, beta_Q, beta_S, beta_C = ACSIMSEP.find_sens_fact(ps, PartFactFlag, not_converged);"
29+
],
30+
"language": "python",
31+
"metadata": {},
32+
"outputs": [
33+
{
34+
"output_type": "stream",
35+
"stream": "stdout",
36+
"text": [
37+
"Iter Max(|g|) |g|_2 max(Jac'*g) alpha\n"
38+
]
39+
},
40+
{
41+
"output_type": "stream",
42+
"stream": "stdout",
43+
"text": [
44+
" "
45+
]
46+
},
47+
{
48+
"output_type": "stream",
49+
"stream": "stdout",
50+
"text": [
51+
" 1 0.5060672 0.9462937 12.6881918 1.0047814 \n",
52+
" 2 0.0154004 0.0267479 0.1729836 1.0018776 \n",
53+
" 3 0.0000094 0.0000122 0.0001057 0.9999999 \n",
54+
"Solution found.\n",
55+
"Iter Max(|g|) |g|_2 max(Jac'*g) alpha"
56+
]
57+
},
58+
{
59+
"output_type": "stream",
60+
"stream": "stdout",
61+
"text": [
62+
"\n",
63+
" 1 1.9060672 4.0005466 28.4673935 1.3142463 \n",
64+
" 2 0.4751459 0.7475127 8.5153861 1.3248368 \n",
65+
" 3 0.1278692 0.2006868 1.5223427 0.0123590 \n",
66+
" 4 0.1272233 0.1994478 1.4983327 0.0000388 \n",
67+
" 5 0.1272213 0.1994439 1.4972657 0.0000001 \n",
68+
" Did not find a solution to g(x) = 0.\n",
69+
"Power flow did not converge on island 2 of 2.\n",
70+
"Iter Max(|g|) |g|_2 max(Jac'*g) alpha"
71+
]
72+
}
73+
]
74+
},
75+
{
76+
"cell_type": "code",
77+
"collapsed": false,
78+
"input": [],
79+
"language": "python",
80+
"metadata": {},
81+
"outputs": []
82+
}
83+
],
84+
"metadata": {}
85+
}
86+
]
87+
}

0 commit comments

Comments
 (0)