{"id":1695,"date":"2016-11-14T17:08:39","date_gmt":"2016-11-14T16:08:39","guid":{"rendered":"http:\/\/www.supagro.fr\/wordpress\/modeleco\/?page_id=1695"},"modified":"2019-11-14T11:55:48","modified_gmt":"2019-11-14T10:55:48","slug":"activite-13a-desserrer-les-contraintes-solution","status":"publish","type":"page","link":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/lecon13\/activite-13a-desserrer-les-contraintes-solution\/","title":{"rendered":"Activit\u00e9 13A : Desserrer les contraintes &#8211; Solution"},"content":{"rendered":"<p>Bien que le mod\u00e8le renvoie une solution, le<strong> statut du mod\u00e8le<\/strong> est 3 ce qui signifie<strong> Unbounded. Il n&rsquo;y a donc pas de solution optimale<\/strong>. On le voit \u00e0 plusieurs endroits :<strong><br \/>\n<\/strong>dans la <strong>fen\u00eatre des processus<\/strong> (mais attention ce n&rsquo;est pas \u00e9crit en rouge), il est \u00e9crit<strong><span style=\"font-family: Courier New\"><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0<\/em> LP status(2): unbounded<\/span><br \/>\n<\/strong>dans le fichier des r\u00e9sultats dans<strong> \u00ab\u00a0Solution Report\u00a0\u00bb<\/strong> :<strong><br \/>\n<span style=\"font-family: Courier New\">\u00a0\u00a0\u00a0\u00a0 **** MODEL STATUS\u00a0 3 UNDOUNDED<\/span><br \/>\n<\/strong>puis dans les variables <strong>\u00ab\u00a0SolVAR\u00a0\u00bb<\/strong> pour var MOS :<strong><span style=\"font-family: Courier New\"><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0<\/em> hiver\u00a0\u00a0\u00a0\u00a0 .\u00a0\u00a0\u00a0\u00a0\u00a0 .\u00a0\u00a0\u00a0\u00a0 +INF\u00a0\u00a0 6.000 \u00a0\u00a0 UNBND<\/span><br \/>\n<\/strong>enfin \u00e0 la fin du fichier <strong>\u00ab\u00a0Report Summary\u00a0\u00bb<\/strong> :<strong><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em> <span style=\"font-family: Courier New\">**** Report Summary 0 NONOPT 0 INFEASIBLE 1 UNBOUNDED (UNBND)<\/span><br \/>\n<\/strong><\/p>\n<p>T\u00e9l\u00e9chargez le mod\u00e8le solution : <a href=\"http:\/\/www.supagro.fr\/ModelEco\/modeles\/travail3.zip\">travail3.gms<\/a><\/p>\n<p>La param\u00e8tre result s\u2019\u00e9crit :<br \/>\n<span style=\"font-family: Courier New\"><br \/>\nParameter RESULT(*,*);<br \/>\nRESULT(c,t) = X.L(c,t);<br \/>\nRESULT(&lsquo;Terre&rsquo;, &lsquo;Total&rsquo;) = TERRE.L;<br \/>\nRESULT(&lsquo;Terre&rsquo;, &lsquo;Marginal&rsquo;)=TERRE.M;<br \/>\nRESULT(&lsquo;Travail_Hiver&rsquo;, &lsquo;Total&rsquo;) = TRAVAIL.L(&lsquo;hiver&rsquo;);<br \/>\nRESULT(&lsquo;Travail_Hiver&rsquo;, &lsquo;Marginal&rsquo;)= TRAVAIL.M(&lsquo;hiver&rsquo;);<br \/>\nRESULT(&lsquo;Travail_Ete&rsquo;, &lsquo;Total&rsquo;) = TRAVAIL.L(&lsquo;ete&rsquo;);<br \/>\nRESULT(&lsquo;Travail_Ete&rsquo;, &lsquo;Marginal&rsquo;)= TRAVAIL.M(&lsquo;ete&rsquo;);<br \/>\nRESULT(&lsquo;MOS_Hiver&rsquo;, &lsquo;Total&rsquo;)=MOS.L(&lsquo;hiver&rsquo;);<br \/>\nRESULT(&lsquo;MOS_Ete&rsquo;, &lsquo;Total&rsquo;)=MOS.L(&lsquo;ete&rsquo;);<br \/>\nRESULT(&lsquo;Eau&rsquo;, &lsquo;Total&rsquo;) = EAU.L;<br \/>\nRESULT(&lsquo;Eau&rsquo;, &lsquo;Marginal&rsquo;)= EAU.M;<br \/>\nRESULT(c,&rsquo;TOTAL&rsquo;) = sum(t, X.L(c,t));<br \/>\nRESULT(&lsquo;StatutDuModele&rsquo;, &lsquo;Total&rsquo;)= modelS2.ModelStat ;<br \/>\nDisplay RESULT ;<br \/>\n<\/span><br \/>\nPour exporter les donn\u00e9es sous Excel, il faut \u00e9crire les lignes de code suivantes :<br \/>\n<span style=\"font-family: Courier New\"><br \/>\nexecute_unload &lsquo;resultat_travail3_B.gdx&rsquo; RESULT ;<br \/>\nexecute &lsquo;gdxxrw.exe resultat_travail3_B.gdx par=RESULT&rsquo;\u00a0\u00a0\u00a0\u00a0 ;<br \/>\n<\/span><\/p>\n<p><a href=\"http:\/\/www.supagro.fr\/wordpress\/modeleco\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/lecon13\/activite-13a-desserrer-toutes-les-contraintes\/\" rel=\"attachment wp-att-829\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-829\" src=\"http:\/\/www.supagro.fr\/wordpress\/modeleco\/files\/2016\/08\/retourAlEnonce.png\" alt=\"retourAlEnonce\" width=\"191\" height=\"67\" \/><\/a><a href=\"http:\/\/www.supagro.fr\/wordpress\/modeleco\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright\" src=\"http:\/\/www.supagro.fr\/wordpress\/modeleco\/files\/2016\/07\/retourAuSommaireDuCours.png\" alt=\"retourAuSommaireDuCours\" width=\"200\" height=\"54\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bien que le mod\u00e8le renvoie une solution, le statut du mod\u00e8le est 3 ce qui signifie Unbounded. Il n&rsquo;y a donc pas de solution optimale. On le voit \u00e0 plusieurs endroits : dans la fen\u00eatre des processus (mais attention ce <a class=\"more-link\" href=\"https:\/\/www.supagro.fr\/wordpress\/modeleco\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/lecon13\/activite-13a-desserrer-les-contraintes-solution\/\">Continuer la lecture <span class=\"screen-reader-text\">  Activit\u00e9 13A : Desserrer les contraintes &#8211; Solution<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":92,"featured_media":0,"parent":397,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1695","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages\/1695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/users\/92"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/comments?post=1695"}],"version-history":[{"count":11,"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages\/1695\/revisions"}],"predecessor-version":[{"id":4192,"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages\/1695\/revisions\/4192"}],"up":[{"embeddable":true,"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages\/397"}],"wp:attachment":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/media?parent=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}