Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
simnh committed Mar 6, 2019
1 parent 920ad48 commit 9b46cf9
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions src/oemof/tabular/examples/scripting/pv_storage_household.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
" input/output household \n",
" | \n",
" pv |----------------->| \n",
" |---------------->| demand\n",
" |---------------->| load\n",
" | \n",
" grid buy |----------------->| \n",
" |---------------->| grid sell \n",
Expand All @@ -29,6 +29,13 @@
"5. Postprocess results"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 0. Imports and data handling"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -45,13 +52,6 @@
"import oemof.tabular.facades as fc"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Preparation"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -79,7 +79,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Create Energy System"
"## 1. / 2. Create energy system and add nodes"
]
},
{
Expand Down Expand Up @@ -143,7 +143,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Create model and solve"
"## 3. / 4. Create model and solve"
]
},
{
Expand All @@ -156,8 +156,22 @@
"m = Model(es)\n",
"\n",
"# solve model using cbc solver\n",
"m.solve(\"cbc\")\n",
"\n",
"m.solve(\"cbc\")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 5. Postprocess results"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# write back results\n",
"m.results = m.results()\n",
"\n",
Expand Down

0 comments on commit 9b46cf9

Please sign in to comment.