{"id":1319,"date":"2016-10-13T10:19:16","date_gmt":"2016-10-13T08:19:16","guid":{"rendered":"http:\/\/www.supagro.fr\/wordpress\/modeleco\/?page_id=1319"},"modified":"2019-06-19T13:18:25","modified_gmt":"2019-06-19T11:18:25","slug":"activite-10-b-afficher-les-valeurs-duales","status":"publish","type":"page","link":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence1\/cours3-probleme-primal-probleme-dual\/lecon10\/activite-10-b-afficher-les-valeurs-duales\/","title":{"rendered":"Activity 10B : \u00ab Wheat\/maize \u00bb model \u2013 Displaying dual values"},"content":{"rendered":"<h4 style=\"text-align: right\"><u>Length : around 15 minutes<\/u><\/h4>\n<p>The objective of this exercise is to display the dual values of equations in a results table which will be presented using the Display command. Consider the following statement of the modelled problem\u00a0:<\/p>\n<p><em>\u00a0<\/em><em><strong>\u00ab\u00a0A given farm can grow two types of crop : wheat and maize. The area to be cultivated must be determined for each crop, knowing that :<br \/>\nThe objective of the farmer is to maximize his income.<br \/>\nWheat yields 450\u20ac per hectare, maize 1000\u20ac.<br \/>\nWheat requires 25 hours of labour per hectare and per year, and maize 50 hours.<br \/>\nThe farm area is 50 ha and the farmer can work 2000 hours a year.<\/strong><\/em><\/p>\n<p><em>But he can hire hourly workers who get paid 15\u20ac per hour.<strong>\u00a0\u00bb<\/strong><\/em><\/p>\n<p>Run the primal2.gms<em>\u00a0model <\/em><em>(download it here\u00a0:\u00a0<\/em><a href=\"https:\/\/www.supagro.fr\/ModelEco\/en\/modeles\/modelEco_primal2.zip\"><em>primal2.zip<\/em><\/a><em>\u00a0or from the Model Library),\u00a0<\/em><em>and save it under a different name (for example <\/em>primal2_result.gms). Add the command lines in order to have the following display :<\/p>\n<table width=\"712\">\n<tbody>\n<tr>\n<td width=\"237\"><\/td>\n<td width=\"236\">TOTAL<\/td>\n<td width=\"239\">MARGINAL<\/td>\n<\/tr>\n<tr>\n<td width=\"237\">INCOME<\/td>\n<td width=\"236\">42500<\/td>\n<td width=\"239\"><\/td>\n<\/tr>\n<tr>\n<td width=\"237\">LAND<\/td>\n<td width=\"236\">50<\/td>\n<td width=\"239\">\u00a0250<\/td>\n<\/tr>\n<tr>\n<td width=\"237\">LABOUR<\/td>\n<td width=\"236\">2000<\/td>\n<td width=\"239\">15<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"http:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence1\/cours3-probleme-primal-probleme-dual\/\"><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\/activite-10b-afficher-les-valeurs-duales-solution\/\" rel=\"attachment wp-att-961\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-961\" src=\"http:\/\/www.supagro.fr\/wordpress\/modeleco\/files\/2016\/08\/solution.png\" alt=\"solution\" width=\"124\" height=\"67\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Length : around 15 minutes The objective of this exercise is to display the dual values of equations in a results table which will be presented using the Display command. Consider the following statement of the modelled problem\u00a0: \u00a0\u00ab\u00a0A given <a class=\"more-link\" href=\"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/auto-formation\/sequence1\/cours3-probleme-primal-probleme-dual\/lecon10\/activite-10-b-afficher-les-valeurs-duales\/\">Continue reading <span class=\"screen-reader-text\">  Activity 10B : \u00ab Wheat\/maize \u00bb model \u2013 Displaying dual values<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":92,"featured_media":0,"parent":359,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1319","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages\/1319","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=1319"}],"version-history":[{"count":22,"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages\/1319\/revisions"}],"predecessor-version":[{"id":4563,"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages\/1319\/revisions\/4563"}],"up":[{"embeddable":true,"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/pages\/359"}],"wp:attachment":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modelecoen\/wp-json\/wp\/v2\/media?parent=1319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}