{"id":1590,"date":"2016-11-09T09:49:06","date_gmt":"2016-11-09T08:49:06","guid":{"rendered":"http:\/\/www.supagro.fr\/wordpress\/modeleco\/?page_id=1590"},"modified":"2019-06-19T13:47:50","modified_gmt":"2019-06-19T11:47:50","slug":"activite-11b-afficher-les-resultats-par-technique","status":"publish","type":"page","link":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/lecon11\/activite-11b-afficher-les-resultats-par-technique\/","title":{"rendered":"Activity 11B : \u00ab Wheat\/maize \u00bb model \u2013 Adding a new constraint and displaying results per technology"},"content":{"rendered":"<h4 style=\"text-align: right\"><u>Length : around 15 minutes<\/u><\/h4>\n<p><strong>Run the<a href=\"https:\/\/www.supagro.fr\/ModelEco\/en\/modeles\/modelEco_techn1.zip\"> techn1.gms<\/a>\u00a0 model (which you wrote in <a href=\"http:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/lecon11\/activite-11b-representer-les-techniques-dans-le-modele\/\">activity 11A<\/a>\u00a0, or download it from the Model Library) and save it under the name technique2.gms. Add the crop water needs (model problem statement found below). Add the new irrigation constraint and display the results of the optimum areas for each crop in the form of a table (row : crops ; columns : technologies ; and one \u201ctotal\u201d column.)<\/strong><\/p>\n<table width=\"964\">\n<tbody>\n<tr>\n<td width=\"964\"><strong>Reminder<\/strong> :<br \/>\nIn order to display a table, a two-dimensional parameter must be created (with the character * replacing the domain when the parameter is not set to a specific domain), values must be attributed, and it can then be created using the <strong>display<\/strong> command.<br \/>\nFor example, in a \u201cone row \/ one column\u201d table, the following rows show the optimum total income value. Copy (warning : do not copy-paste !) the rows and observe the result in the .lst file :Parameter RESULT(*,*);<br \/>\nRESULT(\u2018REVENU\u2019,\u2019TOTAL\u2019) = Z.L;<br \/>\nDisplay RESULT ;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>\u00ab\u00a0A given farm can grow three types of crop, wheat, maize and tomato, and use two different crop practices, extensive and intensive. The area to be cultivated and technology to be used must be determined, knowing that :<\/em><\/p>\n<p><em>The objective of the farmer is to maximize his income.<\/em><\/p>\n<p><em>The needs are :<\/em><\/p>\n<table width=\"494\">\n<tbody>\n<tr>\n<td width=\"115\"><\/td>\n<td colspan=\"2\" width=\"187\">Water needs (thousands of m3\/ha)<\/td>\n<td colspan=\"2\" width=\"192\">Labour needs (h\/ha)<\/td>\n<\/tr>\n<tr>\n<td width=\"115\">Technology<\/td>\n<td width=\"93\">extensive<\/td>\n<td width=\"94\">intensive<\/td>\n<td width=\"94\">extensive<\/td>\n<td width=\"98\">Intensive<\/td>\n<\/tr>\n<tr>\n<td width=\"115\">Wheat<\/td>\n<td width=\"93\">0<\/td>\n<td width=\"94\">2<\/td>\n<td width=\"94\">15<\/td>\n<td width=\"98\">25<\/td>\n<\/tr>\n<tr>\n<td width=\"115\">Maize<\/td>\n<td width=\"93\">4<\/td>\n<td width=\"94\">6<\/td>\n<td width=\"94\">45<\/td>\n<td width=\"98\">50<\/td>\n<\/tr>\n<tr>\n<td width=\"115\">Tomato<\/td>\n<td width=\"93\">3<\/td>\n<td width=\"94\">5<\/td>\n<td width=\"94\">80<\/td>\n<td width=\"98\">100<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>Yields and costs are as follows :<\/em><\/p>\n<table width=\"494\">\n<tbody>\n<tr>\n<td width=\"115\"><\/td>\n<td colspan=\"2\" width=\"187\">Yield (ton\/ha)<\/td>\n<td colspan=\"2\" width=\"192\">Cost (\u20ac\/ha)<\/td>\n<\/tr>\n<tr>\n<td width=\"115\">Technology<\/td>\n<td width=\"93\">extensive<\/td>\n<td width=\"94\">intensive<\/td>\n<td width=\"94\">extensive<\/td>\n<td width=\"98\">Intensive<\/td>\n<\/tr>\n<tr>\n<td width=\"115\">Wheat<\/td>\n<td width=\"93\">4.5<\/td>\n<td width=\"94\">5.0<\/td>\n<td width=\"94\">250<\/td>\n<td width=\"98\">300<\/td>\n<\/tr>\n<tr>\n<td width=\"115\">Maize<\/td>\n<td width=\"93\">8.0<\/td>\n<td width=\"94\">10.0<\/td>\n<td width=\"94\">400<\/td>\n<td width=\"98\">500<\/td>\n<\/tr>\n<tr>\n<td width=\"115\">Tomato<\/td>\n<td width=\"93\">13.0<\/td>\n<td width=\"94\">16.0<\/td>\n<td width=\"94\">1200<\/td>\n<td width=\"98\">1350<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>The selling price of wheat is 150\u20ac\/ton, that of maize is 150\u20ac\/ton, and that of tomato 185\u20ac\/ton.<\/em><\/p>\n<p><em>The farm area is 50 ha, and the farmer can work 2000 hours a year and has 150 thousand <\/em><em>m<\/em><em>3<\/em><em>\u00a0for irrigation<\/em><em>.<\/em><em>\u00a0\u00bb<\/em><\/p>\n<p><strong>What cropping pattern is chosen and what is the optimum income for the farmer ?<\/strong><\/p>\n<p><strong>Then check the solution<\/strong><\/p>\n<p><strong>\u00a0<a href=\"http:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/lecon11\/activite-11b-afficher-les-resultats-par-technique-solution\/\" rel=\"attachment wp-att-961\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/www.supagro.fr\/wordpress\/modeleco\/files\/2016\/08\/solution.png\" alt=\"solution\" width=\"92\" height=\"45\" \/><\/a><\/strong><\/p>\n<p><a href=\"http:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4121 alignright\" src=\"http:\/\/www.supagro.fr\/wordpress\/modelecoen\/files\/2018\/11\/backUnit.png\" alt=\"\" width=\"211\" height=\"66\" \/><\/a><a href=\"http:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/lecon11\/activite-11b-representer-les-techniques-dans-le-modele\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-4332\" src=\"http:\/\/www.supagro.fr\/wordpress\/modelecoen\/files\/2018\/11\/FirstPart.png\" alt=\"\" width=\"231\" height=\"57\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Length : around 15 minutes Run the techn1.gms\u00a0 model (which you wrote in activity 11A\u00a0, or download it from the Model Library) and save it under the name technique2.gms. Add the crop water needs (model problem statement found below). Add <a class=\"more-link\" href=\"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence2\/cours1-enrichir-le-modele-de-base\/lecon11\/activite-11b-afficher-les-resultats-par-technique\/\">Continue reading <span class=\"screen-reader-text\">  Activity 11B : \u00ab Wheat\/maize \u00bb model \u2013 Adding a new constraint and displaying results per technology<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":92,"featured_media":0,"parent":394,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1590","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages\/1590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/users\/92"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/comments?post=1590"}],"version-history":[{"count":29,"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages\/1590\/revisions"}],"predecessor-version":[{"id":4571,"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages\/1590\/revisions\/4571"}],"up":[{"embeddable":true,"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages\/394"}],"wp:attachment":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/media?parent=1590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}