diff --git a/Notebook_final.ipynb b/Notebook_final.ipynb index 93abcae02c3cc7c053da2e22c0f7b7c2dafe6223..d326db0a3cb7581d0b01fd2bc7c3d0e501070353 100644 --- a/Notebook_final.ipynb +++ b/Notebook_final.ipynb @@ -1,7 +1,6 @@ { "cells": [ { - "attachments": {}, "cell_type": "markdown", "id": "tight-speech", "metadata": {}, @@ -35,7 +34,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "loved-savings", "metadata": {}, @@ -55,7 +53,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "892c7f7b", "metadata": {}, @@ -64,7 +61,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "79b302b5", "metadata": {}, @@ -85,7 +81,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "71cacb8c", "metadata": {}, @@ -94,7 +89,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "ff08fda0", "metadata": {}, @@ -117,7 +111,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "72f2ef61", "metadata": {}, @@ -126,7 +119,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "17a74ae8", "metadata": {}, @@ -146,7 +138,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "2173f762", "metadata": {}, @@ -155,7 +146,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "edd45834", "metadata": {}, @@ -180,7 +170,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "d3dbd195", "metadata": {}, @@ -189,7 +178,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "5f418ea2", "metadata": {}, @@ -212,7 +200,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "7188a70b", "metadata": {}, @@ -221,7 +208,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "1ff5ea64", "metadata": {}, @@ -249,7 +235,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "57be2a54", "metadata": {}, @@ -260,7 +245,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "6d63023d", "metadata": {}, @@ -282,7 +266,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "6e4c0afb", "metadata": {}, @@ -293,7 +276,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "2c46fc8e", "metadata": {}, @@ -303,7 +285,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "4ff6e898", "metadata": {}, @@ -337,7 +318,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "88f0fe15", "metadata": {}, @@ -398,7 +378,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "2464e1b7", "metadata": {}, @@ -407,7 +386,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "ee2956e1", "metadata": {}, @@ -416,7 +394,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "ff637cd4", "metadata": {}, @@ -459,7 +436,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "4d2a8259", "metadata": {}, @@ -520,7 +496,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "a9f2839f", "metadata": {}, @@ -529,7 +504,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "2c111601", "metadata": {}, @@ -540,7 +514,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "dcd4fd17", "metadata": {}, @@ -552,7 +525,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "b4bf2cbb", "metadata": {}, @@ -572,7 +544,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "dd5e6cd6", "metadata": {}, @@ -583,7 +554,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "c7f40ff2", "metadata": {}, @@ -622,7 +592,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "af08cae2", "metadata": {}, @@ -638,7 +607,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "a85f083d", "metadata": {}, @@ -661,7 +629,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "7aa5fe9a", "metadata": {}, @@ -863,19 +830,18 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "348d4df8", "metadata": {}, "source": [ "Rappelons-nous de la solution optimale du problème d'origine qui était de 8.182\\\\$. En imposant comme contrainte que la pompe doit rester allumée ou éteinte quatre heures consécutives nous observons un coût de 8.689\\\\$ (ce qui représente une hausse de 6.2% du coût) et en imposant cette fois ci qu'elle doit rester allumée ou éteinte à chaque fois durant deux heures consécutives nous observons un prix de 8.394 $ (ce qui représente ne hausse de 2.6% du coût). Ces résultats correspondent aux attentes, la contrainte x=2 est plus restrictive que le problème que le problème de départ et celle de x=4 l'est plus encore. Il est donc normal de rencontrer une augmentation du prix comme il est plus compliqué de répondre aux contraintes. \n", "\n", - "Dans le problème x=4h nous observons 2 périodes (594 et 668) et une dans le problème x=2h (670), où les deux modes sont activés en même temps. \n", + "Dans le problème x=4h nous observons 2 périodes (594 et 668) et une dans le problème x=2h (670), où les deux modes sont activés en même temps. Cela permet d'éviter un réchauffement ou un refroidissement trop important qui nécessiterait une utilisation plus intense du mode inverse. Nous avons donc un réchauffement ou refroidissement plus doux (voir nul si besoin), ce qui arrive à un même résultat pour un coût inférieur à une utilisation alternée des modes.\n", + "\n", "Pour le temps d'exécution, la solution optimale est obtenue en 0.091 seconde, 2.7 secondes, 7.8 secondes respectivement pour le problème initial, le problème avec x=4h et le problème avec x=2h. Les deux derniers problèmes ajoutent un grand nombre de contraintes (2*672) et de variables, ce qui augmente les calculs nécessaires pour atteindre l'optimum. Pour les variables nous avons respectivement 42 et 84 variables de plus pour le problème avec x=4 et le problème avec x=2. Le second cas comprend significativement plus de variables ce qui explique également le temps supplémentaire pris." ] }, { - "attachments": {}, "cell_type": "markdown", "id": "8fcc662f", "metadata": {}, @@ -889,7 +855,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "86e20172", "metadata": {}, @@ -898,7 +863,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "bf51cba6", "metadata": {}, @@ -912,7 +876,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "0048810c", "metadata": {}, @@ -921,7 +884,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "99ecd372", "metadata": {}, @@ -931,7 +893,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "2bb743d7", "metadata": { @@ -942,7 +903,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "11c4dbac", "metadata": {}, @@ -965,7 +925,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "7a3e7b09", "metadata": {}, @@ -982,7 +941,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "ad42aa0d", "metadata": {}, @@ -993,7 +951,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "8f10fc9d", "metadata": {}, @@ -1002,7 +959,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "99dd3eee", "metadata": {}, @@ -1011,7 +967,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "6fa7c356", "metadata": {}, @@ -1030,7 +985,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "1a3e181b", "metadata": {}, @@ -1039,7 +993,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "7768e2fc", "metadata": {}, @@ -1058,7 +1011,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "0d664883", "metadata": {}, @@ -1067,7 +1019,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "509aabc1", "metadata": {}, @@ -1119,7 +1070,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "151041f9", "metadata": {}, @@ -1128,7 +1078,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "82c78b09", "metadata": {}, @@ -1151,7 +1100,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "185b221d", "metadata": {}, @@ -1162,7 +1110,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "01eb34c3", "metadata": {}, @@ -1171,7 +1118,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "e0cc21fb", "metadata": {}, @@ -1215,7 +1161,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "2d28c4ed", "metadata": {}, @@ -1277,7 +1222,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "bb0516f4", "metadata": {}, @@ -1286,7 +1230,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "91c6e0e0", "metadata": {}, @@ -1330,7 +1273,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "36627caa", "metadata": {}, @@ -1392,7 +1334,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "e4aee6ab", "metadata": {}, @@ -1401,7 +1342,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "cef532c6", "metadata": {}, @@ -1412,7 +1352,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "db6baecb", "metadata": {}, @@ -1421,7 +1360,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "cf7d1ad5", "metadata": {}, @@ -1432,7 +1370,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "3d678078", "metadata": {}, @@ -1441,7 +1378,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "06fe7ddc", "metadata": {}, @@ -1450,7 +1386,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "06ad1cc3", "metadata": {}, @@ -1533,7 +1468,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "53c22b28", "metadata": {}, @@ -1638,7 +1572,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "32b36538", "metadata": {}, @@ -1647,7 +1580,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "2be891ab", "metadata": {}, @@ -1658,7 +1590,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "8a8a4cf0", "metadata": {}, @@ -1756,7 +1687,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "44220087", "metadata": {}, @@ -1765,7 +1695,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "7f47806b", "metadata": {}, @@ -1781,7 +1710,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "eb40a4fa", "metadata": {}, @@ -1790,7 +1718,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "e9b4e1d8", "metadata": {}, @@ -1856,7 +1783,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "5771ea0c", "metadata": {}, @@ -1865,7 +1791,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "2e0ae6ba", "metadata": {}, @@ -1874,7 +1799,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "caedf962", "metadata": {}, @@ -1885,7 +1809,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "0b194fe0", "metadata": {}, @@ -1939,7 +1862,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "6896fd35", "metadata": {}, @@ -1993,7 +1915,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "ef6aa85b", "metadata": {}, @@ -2002,7 +1923,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "6d67576e", "metadata": {}, @@ -2059,7 +1979,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "1071e282", "metadata": {}, @@ -2068,7 +1987,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "8124c352", "metadata": {}, @@ -2081,7 +1999,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "0d1eeb96", "metadata": {}, @@ -2092,7 +2009,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "fa986f94", "metadata": {}, @@ -2101,7 +2017,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "6145880c", "metadata": {}, @@ -2135,7 +2050,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "7c079cc9", "metadata": {}, @@ -2166,7 +2080,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "5eb757f9", "metadata": {}, @@ -2218,7 +2131,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "638e2324", "metadata": {}, @@ -2263,7 +2175,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "741ea41c", "metadata": {}, @@ -2272,7 +2183,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "d5523f6e", "metadata": {}, @@ -2285,7 +2195,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "id": "640fd558", "metadata": {}, @@ -2339,7 +2248,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.11" + "version": "3.9.7" } }, "nbformat": 4,