Skip to content

Commit

Permalink
Rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed Nov 15, 2024
1 parent fb5d153 commit fd21db2
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions examples/demonstration/demo_debug.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
"output_type": "stream",
"text": [
"Parsing input file \"/Users/jinningwang/work/ams/ams/cases/matpower/case14.m\"...\n",
"Input file parsed in 0.0043 seconds.\n",
"Input file parsed in 0.0042 seconds.\n",
"Zero line rates detacted in rate_a, rate_b, rate_c, adjusted to 999.\n",
"System set up in 0.0024 seconds.\n"
"System set up in 0.0020 seconds.\n"
]
}
],
Expand All @@ -97,8 +97,8 @@
"Parsing OModel for <DCOPF>\n",
"Evaluating OModel for <DCOPF>\n",
"Finalizing OModel for <DCOPF>\n",
"<DCOPF> initialized in 0.0374 seconds.\n",
"<DCOPF> solved as optimal in 0.0164 seconds, converged in 11 iterations with CLARABEL.\n"
"<DCOPF> initialized in 0.0104 seconds.\n",
"<DCOPF> solved as optimal in 0.0084 seconds, converged in 11 iterations with CLARABEL.\n"
]
},
{
Expand Down Expand Up @@ -145,7 +145,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -206,7 +206,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"DCOPF failed as infeasible in 7 iterations with CLARABEL!\n"
"DCOPF failed as infeasible in 9 iterations with CLARABEL!\n"
]
},
{
Expand Down Expand Up @@ -276,8 +276,8 @@
"text": [
"Disabled constraints: pglb, pgub\n",
"Finalizing OModel for <DCOPF>\n",
"<DCOPF> initialized in 0.0021 seconds.\n",
"<DCOPF> solved as optimal in 0.0062 seconds, converged in 9 iterations with CLARABEL.\n"
"<DCOPF> initialized in 0.0012 seconds.\n",
"<DCOPF> solved as optimal in 0.0066 seconds, converged in 9 iterations with CLARABEL.\n"
]
},
{
Expand Down Expand Up @@ -315,6 +315,13 @@
"sp.DCOPF.pg.v"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Since all the inequality constraints are written in the form of $Ax -b \\leq 0$, we can check the violated constraints by finding the those with positive `Constraint.e`."
]
},
{
"cell_type": "code",
"execution_count": 13,
Expand All @@ -323,7 +330,7 @@
{
"data": {
"text/plain": [
"array([ 2.01448356, 0.09836206, -0.34094854, -0.34094854, -0.34094854])"
"array([ 1.81448356, -0.10163794, -0.54094854, -0.54094854, -0.54094854])"
]
},
"execution_count": 13,
Expand Down

0 comments on commit fd21db2

Please sign in to comment.