{"id":2733,"date":"2017-04-28T11:38:14","date_gmt":"2017-04-28T09:38:14","guid":{"rendered":"http:\/\/www.supagro.fr\/wordpress\/modeleco\/?page_id=2733"},"modified":"2018-01-16T09:36:04","modified_gmt":"2018-01-16T08:36:04","slug":"erreurs-courantes-en-gams","status":"publish","type":"page","link":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/complements-utiles\/erreurs-courantes-en-gams\/","title":{"rendered":"Erreurs courantes en GAMS"},"content":{"rendered":"<p>Ci-dessous un tableau qui r\u00e9pertorie les erreurs les plus courantes en GAMS. Pour savoir comment retrouver une erreur et la corriger, allez voir la <a href=\"http:\/\/www.supagro.fr\/wordpress\/modeleco\/auto-formation\/sequence1\/cours2-introduction-a-gams\/lecon8\/\">le\u00e7on 8<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<table width=\"1002\">\n<tbody>\n<tr>\n<td width=\"65\"><strong>N\u00b0<\/strong><\/td>\n<td width=\"402\"><strong>Message d\u2019erreur<\/strong><\/td>\n<td width=\"250\"><strong>Description<\/strong><\/td>\n<td width=\"285\"><strong>Exemple (tir\u00e9 du mod\u00e8le d\u2019exploitation Bl\u00e9\/Mais)<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">8<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 8<br \/>\n&lsquo;)&rsquo; expected<\/span><\/td>\n<td width=\"250\"><\/td>\n<td width=\"285\">OBJECTIF..\u00a0 sum(c, mb(c)*X(c) =e= Z ;<\/p>\n<p><em>*oubli de ) pour fermer la somme<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">36<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 36<br \/>\n&lsquo;=&rsquo; or &lsquo;..&rsquo; or &lsquo;:=&rsquo; or &lsquo;$=&rsquo; operator expected rest of statement ignored <\/span><\/td>\n<td width=\"250\">Entre-autres possibilti\u00e9s, les deux points on \u00e9t\u00e9 oubli\u00e9 apr\u00e8s le nom de l\u2019equation dans l\u2019attribution.<\/p>\n<p>&nbsp;<\/td>\n<td width=\"285\">OBJECTIF\u00a0 sum(c, mb(c)*X(c) = Z ;<br \/>\n* Il manque les deux points (..) apr\u00e8s OBJECTIF<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">37<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 37<br \/>\n&lsquo;=l=&rsquo; or &lsquo;=e=&rsquo; or &lsquo;=g=&rsquo; operator expected<\/span><\/td>\n<td width=\"250\">Sous GAMS, dans les \u00e9quations, les signes sont sp\u00e9cifi\u00e9s de la fa\u00e7on suivantes\u00a0: \u00ab\u00a0\u00e9gal\u00a0\u00bb s\u2019\u00e9crit \u00ab\u00a0=e=\u00a0\u00bb, \u00ab\u00a0inf\u00e9rieur ou \u00e9gal\u00a0\u00bb s\u2019\u00e9crit \u00ab\u00a0=l=\u00a0\u00bb (signifie low than) et \u00ab\u00a0sup\u00e9rieur ou \u00e9gal\u00a0\u00bb s\u2019\u00e9crit \u00ab\u00a0=g=\u00a0\u00bb (signifie\u00a0greater than)<\/td>\n<td width=\"285\">OBJECTIF..\u00a0 sum(c, mb(c)*X(c) = Z ;<\/p>\n<p><em>\u00a0*\u00e0 la place de =e= on a \u00e9crit =<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">71<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 71<br \/>\nThe symbol shown has been declared as an equation, but no Symbolic equation (..) was found. hint &#8211; look for commas in the Documentation text for the equations. use quotes around the Text or eliminate the commas.<\/span><\/td>\n<td width=\"250\">Une \u00e9quation a \u00e9t\u00e9 d\u00e9clar\u00e9 mais l\u2019attribution n\u2019a pas \u00e9t\u00e9 faite.<\/p>\n<p>&nbsp;<\/td>\n<td width=\"285\"><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">96<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 96<br \/>\nBlank needed between identifier and text (-or- illegal character in identifier) (-or- check for missing &lsquo;;&rsquo; on previous line<br \/>\n<\/span><\/td>\n<td width=\"250\">C\u2019est l\u2019erreur traditionnelle pour signifier que l\u2019on a oubli\u00e9 un point-virgule.<\/td>\n<td width=\"285\">EQUATIONS<br \/>\nOBJECTIF\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fonction objectif<br \/>\nTERRE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 contrainte de terre<br \/>\nTRAVAIL\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 contrainte de travail<em>*oublie de\u00a0; \u00e0 cet endroit<\/em>OBJECTIF..\u00a0 sum(c, mb(c)*X(c)) =e= Z ;<br \/>\nTERRE..\u00a0\u00a0\u00a0 sum(c, X(c)) =l= dterre ;<br \/>\nTRAVAIL..\u00a0 sum(c, bmo(c)*X(c)) =l= dmo ;<\/td>\n<\/tr>\n<tr>\n<td width=\"65\">120<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 120<br \/>\nUnknown identifier entered as set<\/span><\/td>\n<td width=\"250\">Alors qu\u2019il devrait avoir un SET, GAMS lit un autre identifiant<\/p>\n<p>&nbsp;<\/td>\n<td width=\"285\">PARAMETER<br \/>\nBMO(V) besoins en travail par hectare et par culture (heures)<br \/>\n\/ble\u00a0\u00a0\u00a0 25<br \/>\nmais\u00a0\u00a0 50\/<br \/>\n;<em>*V \u00e0 la place de C dans BMO(V)<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">140<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 140<br \/>\nUnknown symbol<\/span><\/td>\n<td width=\"250\">GAMS ne reconnait pas le symbole utilis\u00e9. Ce peut-\u00eatre parce que vous avez oubli\u00e9 faire la d\u00e9claration d\u2019une entit\u00e9.<\/td>\n<td width=\"285\"><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">160<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 160<br \/>\nUnique element expected &#8211; a starting symbol was encountered and parsing will continue by entering &lsquo;element&rsquo;. An UNQUOTED element has to start with a letter or digit followed by letters, digits, &lsquo;+&rsquo;, &lsquo;-&lsquo; or &lsquo;_&rsquo;. The length is limited to 63 characters. The following words are reserved (starting symbols of a GAMS statement) and cannot be used for UNQUOTED set elements:ABORT, ACRONYM(S), ALIAS, BINARY, DISPLAY, ELSE EQUATION(S), EXECUTE, FILE(S), FOR, FREE, IF, INTEGER, LOOP MODEL(S), NEGATIVE, OPTION(S), PARAMETER(S) POSITIVE, PROCEDURE(S), PUT, PUTCLEAR, PUTCLOSE, PUTHD PUTPAGE, PUTTL, SCALAR(S), SEMICONT, SET(S), SOS1, SOS2 TABLE, VARIABLE(S), WHILE QUOTED elements can contain any character. Single and double quotes can be used (starting and ending quote have to match)<\/span><\/td>\n<td width=\"250\">Un \u00e9l\u00e9ment que vous avez d\u00e9clar\u00e9 ne r\u00e9pond pas aux r\u00e8gles de GAMS\u00a0: commencer par une lettre ou un chiffre, suivi de lettres, chiffres, \u2018+\u2019, \u2018-\u2018 ou \u2018_\u2019 et de 63 caract\u00e8res maximum. De plus vous ne pouvez pas utiliser un mot r\u00e9serv\u00e9.<\/td>\n<td width=\"285\">SET C cultures \/ table, mais\/\u00a0;<\/p>\n<p><em>* on a donn\u00e9 le nom table qui est un MOT RESERVE \u00e0 l\u2019\u00e9l\u00e9ment au lieu de ble<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">170<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 170<br \/>\nDomain violation for element<br \/>\n<\/span><\/td>\n<td width=\"250\">L\u2019\u00e9l\u00e9ment n\u2019appartient pas au domaine (le plus souvent au SET) qui a \u00e9t\u00e9 d\u00e9finit<\/td>\n<td width=\"285\">sets<br \/>\nC cultures\u00a0 \/ble,mais\/<br \/>\n;<br \/>\nparameter<br \/>\nBMO(C)<br \/>\n\/orge\u00a0\u00a0\u00a0 25<br \/>\nmais\u00a0\u00a0 50\/ ;<em>*orge n\u2019est pas un \u00e9l\u00e9ment de C<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">338<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 338<br \/>\nUnique element expected &#8211; symbol was not an element and the following text will be skipped until a proper symbol is found to recover. Remember that an UNQUOTED element has to start with a letter or digit followed by letters, digits, &lsquo;+&rsquo;, &lsquo;-&lsquo; or &lsquo;_&rsquo;. The length is limited to 63 characters. The following words are reserved (starting symbols of a GAMS statement) and cannot be used for UNQUOTED set elements:<br \/>\nABORT, ACRONYM(S), ALIAS, BINARY, DISPLAY, ELSE EQUATION(S), EXECUTE, FILE(S), FOR, FREE, IF, INTEGER, LOOP MODEL(S), NEGATIVE, OPTION(S), PARAMETER(S) POSITIVE, PROCEDURE(S), PUT, PUTCLEAR, PUTCLOSE, PUTHD PUTPAGE, PUTTL, SCALAR(S), SEMICONT, SET(S), SOS1, SOS2 TABLE, VARIABLE(S), WHILE QUOTED elements can contain any character. Single and double quotes can be used (starting and ending quote have to match) <\/span><\/td>\n<td width=\"250\">Un \u00e9l\u00e9ment que vous avez d\u00e9clar\u00e9 ne r\u00e9pond pas aux r\u00e8gles de GAMS\u00a0: commencer par une lettre ou un chiffre, suivi de lettres, chiffres, \u2018+\u2019, \u2018-\u2018 ou \u2018_\u2019 et de 63 caract\u00e8res maximum. De plus vous ne pouvez pas utiliser un mot r\u00e9serv\u00e9.<\/td>\n<td width=\"285\">SET C cultures \/ +ble, +mais\/\u00a0;<\/p>\n<p><em>* on a donn\u00e9 le nom +ble et +mais aux \u00e9l\u00e9ments au lieu de ble et mais<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"65\">409<\/td>\n<td width=\"402\"><span style=\"font-size: 80%\">Error 409<\/span><\/p>\n<p>Unrecognizable item &#8211; skip to find a new statement\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 looking for a &lsquo;;&rsquo; or a key word to get started again<\/td>\n<td width=\"250\"><\/td>\n<td width=\"285\">EQUATIONS<br \/>\nOBJECTIF\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fonction objectif<br \/>\nTERRE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 contrainte de terre<br \/>\nTRAVAIL\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 contrainte de travail<br \/>\n;<br \/>\nOBJECTIF..\u00a0 sum(c, mb(c)*X(c)) =e= Z ;<br \/>\nTRAVAIL..\u00a0 sum(c, bmo(c)*X(c)) =l= dmo ;<br \/>\nTERRE..\u00a0\u00a0\u00a0 sum(c, X(c)) =l= dterre <em><br \/>\n<\/em><em>*oublie de\u00a0; \u00e0 cet endroit<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"text-decoration: underline\">Erreurs \u00e0 la fin du mod\u00e8le qui indique que la r\u00e9solution n\u2019a pas pu \u00eatre effectu\u00e9e :<\/span><\/p>\n<p>Error 256<br \/>\nError(s) in analyzing solve statement. More detail appears<br \/>\nBelow the solve statement above<\/p>\n<p>Error 257<br \/>\nSolve statement not checked because of previous errors<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ci-dessous un tableau qui r\u00e9pertorie les erreurs les plus courantes en GAMS. Pour savoir comment retrouver une erreur et la corriger, allez voir la le\u00e7on 8. &nbsp; N\u00b0 Message d\u2019erreur Description Exemple (tir\u00e9 du mod\u00e8le d\u2019exploitation Bl\u00e9\/Mais) 8 Error 8 <a class=\"more-link\" href=\"https:\/\/www.supagro.fr\/wordpress\/modeleco\/complements-utiles\/erreurs-courantes-en-gams\/\">Continuer la lecture <span class=\"screen-reader-text\">  Erreurs courantes en GAMS<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":92,"featured_media":0,"parent":1119,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2733","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages\/2733","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=2733"}],"version-history":[{"count":11,"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages\/2733\/revisions"}],"predecessor-version":[{"id":3755,"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages\/2733\/revisions\/3755"}],"up":[{"embeddable":true,"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/pages\/1119"}],"wp:attachment":[{"href":"https:\/\/www.supagro.fr\/wordpress\/modeleco\/wp-json\/wp\/v2\/media?parent=2733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}