Skip to content

Commit

Permalink
updates model
Browse files Browse the repository at this point in the history
  • Loading branch information
samgdotson committed May 15, 2024
1 parent f2cbac8 commit 88d25b9
Showing 1 changed file with 13 additions and 44 deletions.
57 changes: 13 additions & 44 deletions notebooks/illinois_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 35,
"metadata": {},
"outputs": [
{
Expand All @@ -1041,33 +1041,9 @@
"\n",
"coords for dimension(s) ['snapshot'] is not aligned with the pandas object. Previously, the indexes of the pandas were ignored and overwritten in these cases. Now, the pandas object's coordinates are taken considered for alignment.\n",
"\n",
"INFO:linopy.model: Solve problem using Cplex solver\n",
"INFO:linopy.io: Writing time: 0.06s\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Version identifier: 22.1.1.0 | 2022-11-27 | 9160aff4d\n",
"CPXPARAM_Read_DataCheck 1\n",
"Parallel mode: deterministic, using up to 12 threads for concurrent optimization:\n",
" * Starting dual Simplex on 1 thread...\n",
" * Starting Barrier on 10 threads...\n",
" * Starting primal Simplex on 1 thread...\n",
"Tried aggregator 1 time.\n",
"LP Presolve eliminated 13142 rows and 4382 columns.\n",
"All rows and columns eliminated.\n",
"Presolve time = 0.01 sec. (4.14 ticks)\n",
"\n",
"Dual simplex solved model.\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:linopy.model: Solve problem using Highs solver\n",
"INFO:linopy.io: Writing time: 0.06s\n",
"INFO:linopy.solvers:Log file at C:\\Users\\sdotson\\AppData\\Local\\Temp\\highs.log.\n",
"INFO:linopy.constants: Optimization successful: \n",
"Status: ok\n",
"Termination condition: optimal\n",
Expand All @@ -1094,18 +1070,18 @@
"('ok', 'optimal')"
]
},
"execution_count": 29,
"execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"n.optimize(solver_name='cplex')"
"n.optimize(solver_name='highs')"
]
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 36,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1217,7 +1193,7 @@
"[2190 rows x 2 columns]"
]
},
"execution_count": 30,
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1228,7 +1204,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 37,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -1237,7 +1213,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 38,
"metadata": {},
"outputs": [
{
Expand All @@ -1253,7 +1229,7 @@
"Name: color, dtype: object"
]
},
"execution_count": 32,
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1264,14 +1240,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 39,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1310,7 +1279,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 40,
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit 88d25b9

Please sign in to comment.