Skip to content

Commit

Permalink
supermarket examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cacodcar committed Apr 8, 2024
1 parent 25ad460 commit 51fbd06
Showing 1 changed file with 30 additions and 36 deletions.
66 changes: 30 additions & 36 deletions docs/notebooks/supermarket/supermarket.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,14 @@
},
{
"cell_type": "code",
"execution_count": 2,
"id": "961ef9ef",
"execution_count": null,
"id": "c279b795",
"metadata": {},
"outputs": [],
"source": [
"import pandas\n",
"import numpy\n",
"from energiapy.components.temporal_scale import TemporalScale\n",
"from energiapy.components.resource import Resource, VaryingResource\n",
"from energiapy.components.process import Process, ProcessMode, VaryingProcess\n",
"from energiapy.components.material import Material\n",
"from energiapy.components.location import Location\n",
"from energiapy.components.scenario import Scenario\n",
"from energiapy.components.result import Result\n",
"from energiapy.components import *\n",
"from energiapy.model.formulate import formulate, Constraints, Objective\n",
"from energiapy.plot import plot_results, plot_scenario\n",
"from energiapy.plot.plot_results import CostY, CostX\n",
Expand All @@ -191,7 +185,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "12c1143b",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -219,8 +213,8 @@
},
{
"cell_type": "code",
"execution_count": 4,
"id": "a0473e21",
"execution_count": null,
"id": "42e49131",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -262,7 +256,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "f584e041",
"metadata": {},
"outputs": [],
Expand All @@ -289,7 +283,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "0a648956",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -324,7 +318,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "1934ea2d",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -353,7 +347,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "5a461db2",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -393,7 +387,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"id": "6d5cfa54",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -434,7 +428,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "93fe8dc7",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -482,7 +476,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "c171843d",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -510,7 +504,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "5f29392c",
"metadata": {},
"outputs": [
Expand All @@ -534,7 +528,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"id": "89f298e6",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -580,7 +574,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": null,
"id": "d8dd0777",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -622,7 +616,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": null,
"id": "ddffa353",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -677,7 +671,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"id": "20ef00d5",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -719,7 +713,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": null,
"id": "e6956da2",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -763,9 +757,18 @@
"results_em =solve(scenario= scenario, instance=lp_em , solver='gurobi', name='lp')"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "4a656475",
"metadata": {},
"source": [
"## Trade-off Result"
]
},
{
"cell_type": "code",
"execution_count": 49,
"execution_count": null,
"id": "b9e32853",
"metadata": {},
"outputs": [],
Expand All @@ -783,18 +786,9 @@
"\n"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "4a656475",
"metadata": {},
"source": [
"## Trade-off Result"
]
},
{
"cell_type": "code",
"execution_count": 61,
"execution_count": null,
"id": "f23d364d",
"metadata": {},
"outputs": [
Expand Down

0 comments on commit 51fbd06

Please sign in to comment.