{"id":1216,"date":"2017-07-21T00:18:26","date_gmt":"2017-07-20T19:48:26","guid":{"rendered":"http:\/\/gamsbook.ir\/?p=1216"},"modified":"2021-08-28T03:23:15","modified_gmt":"2021-08-27T22:53:15","slug":"%d8%a7%d9%86%d9%88%d8%a7%d8%b9-%d8%ad%d9%84%d9%82%d9%87-%d8%af%d8%b1-%da%af%d9%85%d8%b2-gams-loops","status":"publish","type":"post","link":"https:\/\/gamsbook.ir\/?p=1216","title":{"rendered":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops"},"content":{"rendered":"<p>\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062e\u062a\u0635\u0631 \u0648 \u0645\u0641\u06cc\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0631 \u0628\u062e\u0634 \u0646\u0638\u0631\u0627\u062a \u0647\u0645\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0633\u0648\u0627\u0644 \u062e\u0648\u062f \u0631\u0627 \u0645\u0637\u0631\u062d \u0641\u0631\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p><strong>\u062d\u0644\u0642\u0647 Loop:<\/strong><\/p>\n<p>\u0639\u0645\u0648\u0645\u06cc \u062a\u0631\u06cc\u0646 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 loop \u0627\u0633\u062a \u06a9\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u0633\u0627\u062e\u062a\u0627\u0631 \u06a9\u0644\u06cc \u0622\u0646 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n\nLoop( (sets),\nstatement or statements to execute\n);\n<\/pre>\n<p>\u062f\u0631 \u06a9\u0644 \u0628\u0627\u0644\u0627\u060c sets \u0627\u0646\u062f\u06cc\u0633 \u06cc\u0627 \u0627\u0646\u062f\u06cc\u0633 \u0647\u0627\u06cc\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647\u0631\u0637\u0628\u0642 \u0622\u0646 \u0645\u0627 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0647 \u062d\u0644\u0642\u0647 \u0627\u0645\u0627\u0646 \u0639\u0645\u0644 \u06a9\u0646\u062f. \u0648 statements \u0647\u0645 \u0634\u0627\u0645\u0644 \u06af\u0630\u0627\u0631\u0647 \u0647\u0627 \u06cc\u0627 \u0639\u0645\u0644\u06cc\u0627\u062a\u06cc\u0633\u062a \u06a9\u0647 \u062f\u0631 \u0647\u0631 \u0644\u0648\u067e \u0645\u0627\u06cc\u0644\u06cc\u0645 \u0645\u062d\u0627\u0633\u0628\u0647 \u06cc\u0627 \u0627\u0646\u062c\u0627\u0645 \u06af\u06cc\u0631\u0646\u062f.<\/p>\n<p><strong>\u0686\u0646\u062f \u0646\u06a9\u062a\u0647:<\/strong><\/p>\n<p>\u06af\u0630\u0627\u0631\u0647 \u0647\u0627 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 Loop \u0645\u06cc \u062a\u0648\u0627\u0646\u0646\u062f \u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u0639\u062f\u062f \u0628\u0627\u0634\u0646\u062f.<\/p>\n<p>\u06af\u0630\u0627\u0631\u0647 \u0647\u0627 \u0645\u06cc\u062a\u0648\u0627\u0646\u0646\u062f \u0634\u0627\u0645\u0644 \u0645\u0648\u0627\u0631\u062f\u06cc \u0627\u0632 \u0642\u0628\u06cc\u0644 if, put \u0648 display &nbsp;\u0648 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u062a\u0631 \u0627\u0632 \u0647\u0645\u0647 solve \u0647\u0645 \u0628\u0627\u0634\u0646\u062f. \u06cc\u0639\u0646\u06cc \u062a\u0648\u0633\u0637 \u0644\u0648\u067e \u0645\u06cc \u062a\u0648\u0627\u0646 \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631 solve \u0631\u0627 \u0686\u0646\u062f\u06cc\u0646 \u0628\u0627\u0631 \u0631\u0627\u0646 \u06af\u0631\u0641\u062a \u0648 \u0647\u0631 \u0633\u0631\u06cc \u0646\u062a\u0627\u06cc\u062c \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f. \u0627\u06cc\u0646 \u0639\u0645\u0644 \u062f\u0631 \u0645\u062f\u0644\u0647\u0627\u06cc \u062f\u06cc\u0646\u0627\u0645\u06cc\u06a9\u060c \u062a\u062c\u0644\u06cc\u0644 \u067e\u0648\u0634\u0634\u06cc\u060c \u0639\u062f\u0645 \u0642\u0637\u0639\u06cc\u062a \u0648&#8230; \u0628\u0633\u06cc\u0627\u0631 \u06a9\u0627\u0631\u0628\u0631\u062f \u062f\u0627\u0631\u062f.<\/p>\n<p>\u062f\u0631\u0648\u0646 \u06cc\u06a9 \u0644\u0648\u067e \u0645\u06cc \u062a\u0648\u0627\u0646 \u06cc\u06a9 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u062f\u06cc\u06af\u0631 \u0631\u0627&nbsp;\u0627\u062c\u0631\u0627 \u06cc\u0627 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u06a9\u0631\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u0645\u06cc\u062a\u0648\u0627\u0646 \u06cc\u06a9 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0627\u0632 \u0631\u0648\u06cc \u0627\u06a9\u0633\u0644 \u062e\u0648\u0627\u0646\u062f \u0648 \u06cc\u0627 \u062a\u0648\u0633\u0637 \u0622\u0646 \u062f\u0633\u062a\u0648\u0631 \u062f\u0627\u062f \u06a9\u0647 \u06cc\u06a9 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u062f\u06cc\u06af\u0631 \u0627\u062c\u0631\u0627 \u0634\u0648\u062f \u0648 \u0646\u062a\u06cc\u062c\u0647 \u0622\u0646 \u0628\u0647 \u06af\u0645\u0632 \u0628\u0627\u0632\u06af\u0631\u062f\u062f.<\/p>\n<p><strong>\u0645\u0647\u0645\u060c<\/strong> \u0647\u06cc\u0686 equation\u06cc&nbsp;\u0646\u0628\u0627\u06cc\u062f \u062f\u0631\u0648\u0646 \u062f\u0633\u062a\u0648\u0631 loop \u0642\u0631\u0627\u0631 \u06af\u06cc\u0631\u062f.<\/p>\n<p>\u062f\u0631 \u0633\u0627\u06cc\u0632 \u0647\u0627\u06cc \u0628\u0627\u0644\u0627 \u062a\u0631\u062c\u06cc\u062d\u0627 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 display \u062f\u0631 \u062d\u0644\u0642\u0647 \u0647\u0627 \u062e\u0648\u062f\u062f\u0627\u0631\u06cc \u06a9\u0646\u06cc\u062f. \u0686\u0631\u0627 \u06a9\u0647 \u0627\u06cc\u0646 \u0639\u0645\u0644 \u0645\u0648\u062c\u0628 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062d\u062c\u0645 \u0641\u0627\u06cc\u0644 lst \u0645\u06cc \u0634\u0648\u062f \u0648 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0645\u0634\u06a9\u0644\u0627\u062a\u06cc \u0631\u0627 \u062f\u0631 \u067e\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f. \u0627\u0644\u0628\u062a\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0686\u0646\u06cc\u0646 \u0645\u0634\u06a9\u0644\u0627\u062a\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 <a href=\"http:\/\/gamsbook.ir\/?p=747\" target=\"_blank\" rel=\"noopener\">\u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9<\/a> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u0686\u0646\u062f \u0645\u062b\u0627\u0644:<\/strong><\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n\n* Example 1\nset t \/ 1985*1990 \/\nparameter pop(t) \/ 1985 3456 \/\ngrowth(t) \/ 1985 25.3, 1986 27.3, 1987 26.2\n1988 27.1, 1989 26.6, 1990 26.6 \/;\n\nloop(t, pop(t+1) = pop(t) + growth(t) ) ;\n\n* example 2\nLoop (i,\nproblemdata=savparam(i);\nSolve mymodel using lp maximizing profit;\nData(i)=profit.l;\n) ;\n\n* example 3\n* Note that k is a set, not a parameter\nloop(index,\nk(index)=yes;\nsolve lptest using lp minimizing lam;\n);\n\n* Example 4\nput \/ \u2019Type one\u2019 \/ ;\nloop(i,\nput \/ \u2019- Mode : \u2019 @20 i.tl:1\n\/ \u2019- Date (mm\/yy) : \u2019 @20 i.tl:5 @19 i.tl:3 @19 \u2019 \u2019 @22 \u2019\/\u2019\n\/ \u2019- Item Type : \u2019 @15 i.tl:7 @15 \u2019 : \u2019\n\/\n);\nput \/ \u2019Type two\u2019 \/ ;\nloop(i,\nput \/ @20 i.tl:1 @1 \u2019- Mode : \u2019\n\/ @20 i.tl:5 @19 i.tl:3 @22 \u2019\/\u2019 @1 \u2019- Date (mm\/yy) : \u2019\n\/ @15 i.tl:7 @1 \u2019- Item Type : \u2019\n\/\n);\n\n* example 5\nloop(i$ ord(i)  gt  3,\nif (x(i)  lt  y(i),\na=4;\n);\n);\n* Example 6\nset i\/1*2\/\nparameter x\/2\/,z;\nloop(i$x, z=3;);\n<\/pre>\n<p>\u062f\u0631 \u0645\u062b\u0627\u0644 \u0622\u062e\u0631 \u062f\u0642\u062a \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0634\u0631\u0637 \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 Loop \u0645\u062a\u0646\u0627\u0638\u0631 \u0628\u0627 \u0639\u0628\u0627\u0631\u062a: \u062d\u0644\u0642\u0647 \u0631\u0627 \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646 \u0628\u0647 \u0634\u0631\u0637\u06cc \u06a9\u0647 x \u0645\u0642\u062f\u0627\u0631\u06cc \u0645\u062e\u0627\u0644\u0641 \u0635\u0641\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f.<\/p>\n<p><strong>\u062d\u0644\u0642\u0647 while:<\/strong><\/p>\n<p>\u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u062f\u0631 \u062f\u0648 \u062d\u0627\u0644\u062a \u0639\u0645\u0648\u0645\u06cc \u0632\u06cc\u0631 \u0646\u0648\u0634\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f. \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0639\u0628\u0627\u0631\u062a logical condition \u06cc\u06a9 \u0634\u0631\u0637 \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f. \u062d\u0644\u0642\u0647 \u06cc while \u062a\u0627 \u0648\u0642\u062a\u06cc \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 \u0634\u0631\u0637 \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u062f\u0631 \u0642\u0633\u0645\u062a logical condition <strong>\u0631\u0639\u0627\u06cc\u062a \u0634\u0648\u062f<\/strong>.<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n---- first way\nWhile (logical condition,\nstatements to be executed While condition is true;\n);\n---- second way\n$Onend\nWhile conditional do\nstatements ;\nEndwhile;\n<\/pre>\n<p>\u0641\u0631\u0642 \u062f\u0648 \u0631\u0648\u0634 \u0641\u0648\u0642 \u0628\u0633\u06cc\u0627\u0631 \u0648\u0627\u0636\u062d \u0627\u0633\u062a. \u062f\u0631 \u0631\u0648\u0634 \u0627\u0648\u0644 \u0627\u0632 \u067e\u0631\u0627\u0646\u062a\u0632 \u0648 \u0648\u06cc\u0631\u06af\u0648\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u062f\u0631 \u0631\u0648\u0634 \u062f\u0648\u0645 \u0627\u0632 $onend \u0648 do \u0648 Endwhile \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0686\u0646\u062f \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0627 \u062f\u0642\u062a \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u06a9\u0644\u06cc\u0627\u062a \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0645\u0644\u06a9\u0647 \u0630\u0647\u0646\u062a\u0627\u0646 \u0634\u0648\u062f.<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n\nWhile(x lt 10,\nx=x+0.01;\n);\n$Onend\nWhile x lt 10 do\nx=x+0.01;\nEndwhile;\n\nWhile(prod(I,q(i)), z=2;q(i)=q(i)-2);\n\nwhile(converge = 0 and iter lt lim,\nroot=(maxroot+minroot)\/2;\niter=iter+1;\nfunction_value=a-b*root+c*sqr(root);\nif(abs(function_value) lt tolerance,\nconverge=1;\nelse\nif(sign(function_value1)=sign(function_value),\nminroot=root;\nfunction_value1=function_value;\nelse\nmaxroot=root;\nfunction_value2=function_value;);\n);\n* display iter,lim,root,minroot,maxroot,\n* function_value,function_value1,function_value2;\n);\n\n<\/pre>\n<p><strong>\u062d\u0644\u0642\u0647 \u06cc for:<\/strong><br \/>\n\u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0646\u06cc\u0632 \u0628\u0647 \u062f\u0648 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n* first\nfor (i = start to|downto end [by incr],\nstatements;\n);\n* second\n$Onend\nFor (i = start to|downto end [by incr] ) do\nstatements ;\nendfor;\n<\/pre>\n<p>\u062f\u0631 \u06a9\u062f \u0628\u0627\u0644\u0627\u060c start \u0627\u0628\u062a\u062f\u0627\u06cc \u0628\u0627\u0632\u0647 \u0648 end \u0627\u0646\u062a\u0647\u0627\u06cc \u0628\u0627\u0632\u0647 \u0648 incr \u0645\u0642\u062f\u0627\u0631 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0631 \u0647\u0631 \u06af\u0627\u0645 \u062d\u0644\u0642\u0647 \u0628\u0648\u062f\u0647 \u0648 \u0647\u0645\u06af\u06cc \u0639\u062f\u062f \u0645\u06cc \u0628\u0627\u0634\u0646\u062f (\u0627\u06cc\u0646 \u0627\u0639\u062f\u0627\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u0646\u062f \u0645\u0646\u0641\u06cc \u06cc\u0627 \u0645\u062b\u0628\u062a \u0628\u0627\u0634\u0646\u062f) \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 i \u0646\u0628\u0627\u06cc\u062f \u06cc\u06a9 set \u0628\u0627\u0634\u062f. \u0628\u0647 \u0639\u0628\u0627\u0631\u062a\u06cc i \u06cc\u06a9 \u067e\u0627\u0631\u0627\u0645\u062a\u0631&nbsp;\u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u0634\u0648\u062f. \u0686\u0646\u062f \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u0645\u0648\u0636\u0648\u0639 \u0631\u0627 \u0631\u0648\u0634 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n* Example 1\nscalar i ;\nscalar globmin ; globmin = inf ;\noption bratio = 1 ;\nfor (i = 1 to 1000,\nx.l(j) = uniform(0,1) ;\nsolve ml using nlp minimizing obj ;\nif (obj.l le globmin,\nglobmin = obj.l ;\nglobinit(j) = x.l(j) ;\n);) ;\n* example 2\nfor(x=1 downto 12 by 2,\ndata(i)=x;\n);\n* Example 3\n$Onend\nfor x=1 downto 12 by 2 do\ndata(i)=x;\nendfor;\n\n<\/pre>\n<p><strong>\u062d\u0644\u0642\u0647 repeat:<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u062d\u0644\u0642\u0647 \u06cc while \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0634\u062f \u06a9\u0647 statement&nbsp;\u062a\u0627 \u0632\u0645\u0627\u0646\u06cc \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 \u0634\u0631\u0637 \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u062f\u0631 logical condition \u0646\u0642\u0636 \u0634\u0648\u062f. \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 repeat \u062c\u0627\u06cc logical condition \u0648 statement \u0639\u0648\u0636 \u0645\u06cc \u0634\u0648\u062f. \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627&nbsp;\u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n\nrepeat ( statements to be executed;\nuntil logical condition is true );\n\n<\/pre>\n<p>\u0628\u0647 \u0639\u0628\u0627\u0631\u062a\u06cc repeat \u062a\u0627 \u0648\u0642\u062a\u06cc \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 logical condition <strong>\u0631\u0639\u0627\u06cc\u062a \u0646\u0634\u0648\u062f<\/strong>. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 logical \u0635\u062d\u06cc\u062d \u0628\u0627\u0634\u062f\u060c \u06af\u0645\u0632 \u0627\u0632 \u0627\u062f\u0627\u0645\u0647 \u06cc repeat \u0635\u0631\u0641\u0647 \u0646\u0638\u0631 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p>\u0686\u0646\u062f \u0645\u062b\u0627\u0644:<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n\n** Example 1\nrepeat (\na=uniform(2,10);\nsolve mymodel using minlp max z;\ndisplay a,z.l;\nuntil (z.l&lt;=5) ;);\n** 2 Example\nrepeat(\nroot=root+inc;\nfunction_value2= a-b*root+c*sqr(root);\nif((sign(function_value1) ne sign(function_value2)\nand abs(function_value1) gt 0\nand abs(function_value2) gt tolerance),\nmaxroot=root;\nsignswitch=1\nelse\nif(abs(function_value2) gt tolerance,\nfunction_value1=function_value2;\nminroot=root;));\nuntil (signswitch gt 0 or root  gt maxroot)) ;;\n** example 3\nrepeat(\nv=v+1;\nbreak$(v-1=3);\n%innerLoop%;\nuntil v&gt;3;\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u0646\u06a9\u062a\u0647:<\/strong> \u06cc\u06a9 \u0634\u0631\u0637 \u062a\u0648\u0642\u0641 \u0628\u0631\u0627\u06cc while, for \u0648 repeat \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u067e\u0634\u0646 \u0632\u06cc\u0631 \u0627\u0633\u062a \u06a9\u0647 \u062a\u0639\u062f\u0627\u062f \u062a\u06a9\u0631\u0627\u0631\u0647\u0627\u06cc \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0630\u06a9\u0631 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0647 \u062a\u0639\u062f\u0627\u062f number \u0645\u062d\u062f\u0648\u062f \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\"> option forlim=number; <\/pre>\n<p><strong>\u062a\u0648\u062c\u0647: <\/strong>\u062f\u0631 \u062d\u0644\u0642\u0647 \u0647\u0627 \u062a\u0639\u0627\u0631\u06cc\u0641 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646\u0646\u062f \u0642\u0631\u0627\u0631 \u06af\u06cc\u0631\u0646\u062f. \u0645\u062b\u0644\u0627 \u062f\u0631\u0648\u0646 \u06cc\u06a9 \u062d\u0644\u0642\u0647 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646 \u06cc\u06a9 \u0645\u062c\u0645\u0648\u0639\u0647 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f. \u06cc\u0627 \u06cc\u06a9 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u062f\u0631 \u06cc\u06a9 \u062d\u0644\u0642\u0647 \u0646\u0645\u06cc\u062a\u0648\u0627\u0646 \u06cc\u06a9 equation.. \u0646\u0648\u0634\u062a.&nbsp;\u062f\u0648 \u0645\u062b\u0627\u0644 \u0632\u06cc\u0631 \u06a9\u0647 \u06a9\u0627\u0645\u0644\u0627 \u0627\u0634\u062a\u0628\u0627\u0647 \u0627\u0633\u062a \u06af\u0648\u0627\u0647 \u0627\u06cc\u0646 \u0645\u062f\u0639\u0627\u0633\u062a.<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n\nfor (s = 1 to 5 by 1,\neq.. sum(i,x(i)) =g= 2 ;\n);\nfor (s=1 to 5 by 1,\nscalar y ; y = 5 ;\n);\n\n<\/pre>\n<p><strong>\u062a\u0648\u062c\u0647:!<\/strong> \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0627 \u0633\u0627\u06cc\u0632 \u0628\u0627\u0644\u0627 \u062f\u0631 \u06af\u0645\u0632 \u0633\u0631\u0639\u062a \u067e\u0627\u06cc\u06cc\u0646\u06cc \u0646\u0633\u0628\u062a \u0628\u0647 \u0633\u0627\u06cc\u0631 \u0632\u0628\u0627\u0646 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u0627\u0631\u0646\u062f. \u0627\u0632 \u0627\u06cc\u0646\u0631\u0648 \u0647\u0645\u06cc\u0634\u0647 \u0628\u0647 \u06cc\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u062d\u0644\u0642\u0647 \u06cc \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u06cc \u0634\u0645\u0627 \u0632\u0645\u0627\u0646\u0628\u0631 \u0627\u0633\u062a\u060c \u0627\u0632 \u0634\u0631\u0637 \u0647\u0627\u060c if \u0648 \u0633\u0627\u06cc\u0631 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u06a9\u0645\u06a9\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0633\u0631\u0639\u062a \u062d\u0644\u0642\u0647 \u0628\u0627\u0644\u0627\u062a\u0631 \u0631\u0648\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0627\u06cc\u0646 \u0639\u0645\u0644 \u0646\u06cc\u0632 \u0627\u062b\u0631 \u0646\u06a9\u0631\u062f \u0627\u0632 \u0633\u0627\u06cc\u0631 \u0632\u0628\u0627\u0646 \u0647\u0627 \u0648 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0647\u0627 \u0645\u0627\u0646\u0646\u062f \u0627\u06a9\u0633\u0644 \u0648 \u0645\u062a\u0644\u0628 \u0628\u0631\u0627\u06cc \u0645\u062d\u0627\u0633\u0628\u0627\u062a \u0639\u0627\u062f\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f\u0647 \u0648 \u062e\u0631\u0648\u062c\u06cc \u0622\u0646\u0647\u0627 \u0631\u0627 \u062f\u0631 \u06af\u0645\u0632 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u062f\u0631 \u06a9\u062f \u062a\u0627 \u062c\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u062f\u0627\u0631\u062f \u0628\u0647 \u062c\u0627\u06cc \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0632 \u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0639\u0627\u062f\u0644 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u062f\u0631 \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0648\u06cc\u0647 \u06cc \u062f\u0648\u0645\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u067e\u0627\u0631\u0627\u0645\u062a\u0631 u \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0633\u062a \u0633\u0631\u0639\u062a \u0639\u0645\u0644 \u0628\u06cc\u0634\u062a\u0631\u06cc \u0646\u0633\u0628\u062a \u0628\u0647 \u0631\u0648\u06cc\u0647 \u0627\u0648\u0644 \u062f\u0627\u0631\u062f.<\/p>\n<pre class=\"brush: css; title: GAMS Code; notranslate\" title=\"GAMS Code\">\n\nset I \/ 1 * 100000 \/;\nparameter u(I);\n* bad!\nloop { I,\nu(I) = uniform(0,2);\n};\n* good\nu(I) = uniform(0,2);\n\n<\/pre>\n<p>]\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1828,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,36,117],"tags":[134,131,136,6,128,130,129,133,126,135,132,127],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062e\u062a\u0635\u0631 \u0648 \u0645\u0641\u06cc\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0631 \u0628\u062e\u0634 \u0646\u0638\u0631\u0627\u062a \u0647\u0645\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0633\u0648\u0627\u0644 \u062e\u0648\u062f\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u0645\u062d\u0645\u0648\u062f\u06cc\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/gamsbook.ir\/?p=1216\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"fa_IR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632 - \u0645\u062d\u0644\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u06cc \u0645\u0647\u0627\u0631\u062a\u200c\u0647\u0627\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u06af\u0645\u0632\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops - \u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062e\u062a\u0635\u0631 \u0648 \u0645\u0641\u06cc\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0631 \u0628\u062e\u0634 \u0646\u0638\u0631\u0627\u062a \u0647\u0645\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0633\u0648\u0627\u0644 \u062e\u0648\u062f\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/gamsbook.ir\/?p=1216\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-07-20T19:48:26+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-08-27T22:53:15+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops - \u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062e\u062a\u0635\u0631 \u0648 \u0645\u0641\u06cc\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0631 \u0628\u062e\u0634 \u0646\u0638\u0631\u0627\u062a \u0647\u0645\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0633\u0648\u0627\u0644 \u062e\u0648\u062f\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#blogposting\",\"name\":\"\\u0627\\u0646\\u0648\\u0627\\u0639 \\u062d\\u0644\\u0642\\u0647 \\u062f\\u0631 \\u06af\\u0645\\u0632 | GAMS loops - \\u0648\\u0628\\u0633\\u0627\\u06cc\\u062a \\u062a\\u062e\\u0635\\u0635\\u06cc \\u0646\\u0631\\u0645 \\u0627\\u0641\\u0632\\u0627\\u0631 \\u06af\\u0645\\u0632\",\"headline\":\"\\u0627\\u0646\\u0648\\u0627\\u0639 \\u062d\\u0644\\u0642\\u0647 \\u062f\\u0631 \\u06af\\u0645\\u0632 | GAMS loops\",\"author\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/gamsbook.ir\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/Turquoise-Chalkboard-Animated-Fathers-Day-Facebook-Post-10.png\",\"width\":940,\"height\":788},\"datePublished\":\"2017-07-21T00:18:26+04:30\",\"dateModified\":\"2021-08-28T03:23:15+04:30\",\"inLanguage\":\"fa-IR\",\"commentCount\":164,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#webpage\"},\"articleSection\":\"4 \\u0648\\u0627\\u0631\\u062f \\u06a9\\u0631\\u062f\\u0646 \\u062f\\u0627\\u062f\\u0647 \\u0647\\u0627\\u06cc \\u0645\\u0633\\u0626\\u0644\\u0647, 7 \\u062f\\u0633\\u062a\\u0648\\u0631\\u0627\\u062a \\u0646\\u0647\\u0627\\u06cc\\u06cc \\u0645\\u062f\\u0644, \\u0633\\u0627\\u06cc\\u0631 \\u0645\\u0637\\u0627\\u0644\\u0628 \\u0645\\u0641\\u06cc\\u062f, condition, for, forlim, GAMS, loop, repeat, while, \\u062a\\u06a9\\u0631\\u0627\\u0631, \\u062d\\u0644\\u0642\\u0647, \\u0634\\u0631\\u0637, \\u06af\\u0645\\u0632, \\u0644\\u0648\\u067e\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/gamsbook.ir#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gamsbook.ir\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?cat=12#listItem\",\"name\":\"4 \\u0648\\u0627\\u0631\\u062f \\u06a9\\u0631\\u062f\\u0646 \\u062f\\u0627\\u062f\\u0647 \\u0647\\u0627\\u06cc \\u0645\\u0633\\u0626\\u0644\\u0647\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?cat=12#listItem\",\"position\":2,\"name\":\"4 \\u0648\\u0627\\u0631\\u062f \\u06a9\\u0631\\u062f\\u0646 \\u062f\\u0627\\u062f\\u0647 \\u0647\\u0627\\u06cc \\u0645\\u0633\\u0626\\u0644\\u0647\",\"item\":\"https:\\\/\\\/gamsbook.ir\\\/?cat=12\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#listItem\",\"name\":\"\\u0627\\u0646\\u0648\\u0627\\u0639 \\u062d\\u0644\\u0642\\u0647 \\u062f\\u0631 \\u06af\\u0645\\u0632 | GAMS loops\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/gamsbook.ir#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#listItem\",\"position\":3,\"name\":\"\\u0627\\u0646\\u0648\\u0627\\u0639 \\u062d\\u0644\\u0642\\u0647 \\u062f\\u0631 \\u06af\\u0645\\u0632 | GAMS loops\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?cat=12#listItem\",\"name\":\"4 \\u0648\\u0627\\u0631\\u062f \\u06a9\\u0631\\u062f\\u0646 \\u062f\\u0627\\u062f\\u0647 \\u0647\\u0627\\u06cc \\u0645\\u0633\\u0626\\u0644\\u0647\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/#organization\",\"name\":\"\\u0648\\u0628\\u0633\\u0627\\u06cc\\u062a \\u062a\\u062e\\u0635\\u0635\\u06cc \\u0646\\u0631\\u0645 \\u0627\\u0641\\u0632\\u0627\\u0631 \\u06af\\u0645\\u0632\",\"description\":\"\\u0645\\u062d\\u0644\\u06cc \\u0628\\u0631\\u0627\\u06cc \\u062a\\u0648\\u0633\\u0639\\u0647\\u200c\\u06cc \\u0645\\u0647\\u0627\\u0631\\u062a\\u200c\\u0647\\u0627\\u06cc \\u0645\\u0631\\u062a\\u0628\\u0637 \\u0628\\u0627 \\u06af\\u0645\\u0632\",\"url\":\"https:\\\/\\\/gamsbook.ir\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?author=1#author\",\"url\":\"https:\\\/\\\/gamsbook.ir\\\/?author=1\",\"name\":\"\\u0645\\u062d\\u0645\\u0648\\u062f\\u06cc\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2f2acd5b2a7418bb01d24fbab3abeebd?s=96&d=blank&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u0645\\u062d\\u0645\\u0648\\u062f\\u06cc\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#webpage\",\"url\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216\",\"name\":\"\\u0627\\u0646\\u0648\\u0627\\u0639 \\u062d\\u0644\\u0642\\u0647 \\u062f\\u0631 \\u06af\\u0645\\u0632 | GAMS loops - \\u0648\\u0628\\u0633\\u0627\\u06cc\\u062a \\u062a\\u062e\\u0635\\u0635\\u06cc \\u0646\\u0631\\u0645 \\u0627\\u0641\\u0632\\u0627\\u0631 \\u06af\\u0645\\u0632\",\"description\":\"\\u0645\\u0627\\u0646\\u0646\\u062f \\u0647\\u0631 \\u0632\\u0628\\u0627\\u0646 \\u0628\\u0631\\u0646\\u0627\\u0645\\u0647 \\u0646\\u0648\\u06cc\\u0633\\u06cc \\u062f\\u06cc\\u06af\\u0631 \\u062f\\u0631 \\u06af\\u0645\\u0632 \\u0646\\u06cc\\u0632 \\u062d\\u0644\\u0642\\u0647 \\u0647\\u0627 \\u0627\\u0646\\u0648\\u0627\\u0639 \\u0645\\u062e\\u062a\\u0644\\u0641\\u06cc \\u062f\\u0627\\u0631\\u0646\\u062f \\u06a9\\u0647 \\u0628\\u0633\\u062a\\u0647 \\u0628\\u0647 \\u06a9\\u0627\\u0631\\u0628\\u0631\\u062f \\u0628\\u0627\\u06cc\\u062f \\u0627\\u0632 \\u06cc\\u06a9 \\u06cc\\u0627 \\u062a\\u0631\\u06a9\\u06cc\\u0628\\u06cc \\u0627\\u0632 \\u0622\\u0646\\u0647\\u0627 \\u0627\\u0633\\u062a\\u0641\\u0627\\u062f\\u0647 \\u0646\\u0645\\u0648\\u062f. \\u062f\\u0631 \\u0627\\u06cc\\u0646 \\u062a\\u0627\\u067e\\u06cc\\u06a9 \\u0627\\u06cc\\u0646 \\u062d\\u0644\\u0642\\u0647 \\u0647\\u0627 \\u0628\\u0647 \\u0637\\u0648\\u0631 \\u0645\\u062e\\u062a\\u0635\\u0631 \\u0648 \\u0645\\u0641\\u06cc\\u062f \\u0622\\u0645\\u0648\\u0632\\u0634 \\u062f\\u0627\\u062f\\u0647 \\u0634\\u062f\\u0647 \\u0627\\u0646\\u062f. \\u062f\\u0631 \\u0635\\u0648\\u0631\\u062a \\u0648\\u062c\\u0648\\u062f \\u0647\\u0631 \\u06af\\u0648\\u0646\\u0647 \\u0633\\u0648\\u0627\\u0644\\u06cc \\u062f\\u0631 \\u0628\\u062e\\u0634 \\u0646\\u0638\\u0631\\u0627\\u062a \\u0647\\u0645\\u06cc\\u0646 \\u062a\\u0627\\u067e\\u06cc\\u06a9 \\u0633\\u0648\\u0627\\u0644 \\u062e\\u0648\\u062f\",\"inLanguage\":\"fa-IR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/gamsbook.ir\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/Turquoise-Chalkboard-Animated-Fathers-Day-Facebook-Post-10.png\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216\\\/#mainImage\",\"width\":940,\"height\":788},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/?p=1216#mainImage\"},\"datePublished\":\"2017-07-21T00:18:26+04:30\",\"dateModified\":\"2021-08-28T03:23:15+04:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/#website\",\"url\":\"https:\\\/\\\/gamsbook.ir\\\/\",\"name\":\"\\u0648\\u0628\\u0633\\u0627\\u06cc\\u062a \\u062a\\u062e\\u0635\\u0635\\u06cc \\u0646\\u0631\\u0645 \\u0627\\u0641\\u0632\\u0627\\u0631 \\u06af\\u0645\\u0632\",\"description\":\"\\u0645\\u062d\\u0644\\u06cc \\u0628\\u0631\\u0627\\u06cc \\u062a\\u0648\\u0633\\u0639\\u0647\\u200c\\u06cc \\u0645\\u0647\\u0627\\u0631\\u062a\\u200c\\u0647\\u0627\\u06cc \\u0645\\u0631\\u062a\\u0628\\u0637 \\u0628\\u0627 \\u06af\\u0645\\u0632\",\"inLanguage\":\"fa-IR\",\"publisher\":{\"@id\":\"https:\\\/\\\/gamsbook.ir\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops - \u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632","description":"\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062e\u062a\u0635\u0631 \u0648 \u0645\u0641\u06cc\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0631 \u0628\u062e\u0634 \u0646\u0638\u0631\u0627\u062a \u0647\u0645\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0633\u0648\u0627\u0644 \u062e\u0648\u062f","canonical_url":"https:\/\/gamsbook.ir\/?p=1216","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/gamsbook.ir\/?p=1216#blogposting","name":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops - \u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632","headline":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops","author":{"@id":"https:\/\/gamsbook.ir\/?author=1#author"},"publisher":{"@id":"https:\/\/gamsbook.ir\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/gamsbook.ir\/wp-content\/uploads\/2017\/07\/Turquoise-Chalkboard-Animated-Fathers-Day-Facebook-Post-10.png","width":940,"height":788},"datePublished":"2017-07-21T00:18:26+04:30","dateModified":"2021-08-28T03:23:15+04:30","inLanguage":"fa-IR","commentCount":164,"mainEntityOfPage":{"@id":"https:\/\/gamsbook.ir\/?p=1216#webpage"},"isPartOf":{"@id":"https:\/\/gamsbook.ir\/?p=1216#webpage"},"articleSection":"4 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0633\u0626\u0644\u0647, 7 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0646\u0647\u0627\u06cc\u06cc \u0645\u062f\u0644, \u0633\u0627\u06cc\u0631 \u0645\u0637\u0627\u0644\u0628 \u0645\u0641\u06cc\u062f, condition, for, forlim, GAMS, loop, repeat, while, \u062a\u06a9\u0631\u0627\u0631, \u062d\u0644\u0642\u0647, \u0634\u0631\u0637, \u06af\u0645\u0632, \u0644\u0648\u067e"},{"@type":"BreadcrumbList","@id":"https:\/\/gamsbook.ir\/?p=1216#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/gamsbook.ir#listItem","position":1,"name":"Home","item":"https:\/\/gamsbook.ir","nextItem":{"@type":"ListItem","@id":"https:\/\/gamsbook.ir\/?cat=12#listItem","name":"4 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0633\u0626\u0644\u0647"}},{"@type":"ListItem","@id":"https:\/\/gamsbook.ir\/?cat=12#listItem","position":2,"name":"4 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0633\u0626\u0644\u0647","item":"https:\/\/gamsbook.ir\/?cat=12","nextItem":{"@type":"ListItem","@id":"https:\/\/gamsbook.ir\/?p=1216#listItem","name":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops"},"previousItem":{"@type":"ListItem","@id":"https:\/\/gamsbook.ir#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/gamsbook.ir\/?p=1216#listItem","position":3,"name":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops","previousItem":{"@type":"ListItem","@id":"https:\/\/gamsbook.ir\/?cat=12#listItem","name":"4 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0633\u0626\u0644\u0647"}}]},{"@type":"Organization","@id":"https:\/\/gamsbook.ir\/#organization","name":"\u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632","description":"\u0645\u062d\u0644\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u06cc \u0645\u0647\u0627\u0631\u062a\u200c\u0647\u0627\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u06af\u0645\u0632","url":"https:\/\/gamsbook.ir\/"},{"@type":"Person","@id":"https:\/\/gamsbook.ir\/?author=1#author","url":"https:\/\/gamsbook.ir\/?author=1","name":"\u0645\u062d\u0645\u0648\u062f\u06cc","image":{"@type":"ImageObject","@id":"https:\/\/gamsbook.ir\/?p=1216#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/2f2acd5b2a7418bb01d24fbab3abeebd?s=96&d=blank&r=g","width":96,"height":96,"caption":"\u0645\u062d\u0645\u0648\u062f\u06cc"}},{"@type":"WebPage","@id":"https:\/\/gamsbook.ir\/?p=1216#webpage","url":"https:\/\/gamsbook.ir\/?p=1216","name":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops - \u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632","description":"\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062e\u062a\u0635\u0631 \u0648 \u0645\u0641\u06cc\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0631 \u0628\u062e\u0634 \u0646\u0638\u0631\u0627\u062a \u0647\u0645\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0633\u0648\u0627\u0644 \u062e\u0648\u062f","inLanguage":"fa-IR","isPartOf":{"@id":"https:\/\/gamsbook.ir\/#website"},"breadcrumb":{"@id":"https:\/\/gamsbook.ir\/?p=1216#breadcrumblist"},"author":{"@id":"https:\/\/gamsbook.ir\/?author=1#author"},"creator":{"@id":"https:\/\/gamsbook.ir\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/gamsbook.ir\/wp-content\/uploads\/2017\/07\/Turquoise-Chalkboard-Animated-Fathers-Day-Facebook-Post-10.png","@id":"https:\/\/gamsbook.ir\/?p=1216\/#mainImage","width":940,"height":788},"primaryImageOfPage":{"@id":"https:\/\/gamsbook.ir\/?p=1216#mainImage"},"datePublished":"2017-07-21T00:18:26+04:30","dateModified":"2021-08-28T03:23:15+04:30"},{"@type":"WebSite","@id":"https:\/\/gamsbook.ir\/#website","url":"https:\/\/gamsbook.ir\/","name":"\u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632","description":"\u0645\u062d\u0644\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u06cc \u0645\u0647\u0627\u0631\u062a\u200c\u0647\u0627\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u06af\u0645\u0632","inLanguage":"fa-IR","publisher":{"@id":"https:\/\/gamsbook.ir\/#organization"}}]},"og:locale":"fa_IR","og:site_name":"\u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632 - \u0645\u062d\u0644\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u06cc \u0645\u0647\u0627\u0631\u062a\u200c\u0647\u0627\u06cc \u0645\u0631\u062a\u0628\u0637 \u0628\u0627 \u06af\u0645\u0632","og:type":"article","og:title":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops - \u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632","og:description":"\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062e\u062a\u0635\u0631 \u0648 \u0645\u0641\u06cc\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0631 \u0628\u062e\u0634 \u0646\u0638\u0631\u0627\u062a \u0647\u0645\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0633\u0648\u0627\u0644 \u062e\u0648\u062f","og:url":"https:\/\/gamsbook.ir\/?p=1216","article:published_time":"2017-07-20T19:48:26+00:00","article:modified_time":"2021-08-27T22:53:15+00:00","twitter:card":"summary_large_image","twitter:title":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops - \u0648\u0628\u0633\u0627\u06cc\u062a \u062a\u062e\u0635\u0635\u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u06af\u0645\u0632","twitter:description":"\u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u06af\u0645\u0632 \u0646\u06cc\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u06cc \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u062f \u0628\u0627\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u06cc\u0627 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0627\u06cc\u0646 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062e\u062a\u0635\u0631 \u0648 \u0645\u0641\u06cc\u062f \u0622\u0645\u0648\u0632\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0647\u0631 \u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0631 \u0628\u062e\u0634 \u0646\u0638\u0631\u0627\u062a \u0647\u0645\u06cc\u0646 \u062a\u0627\u067e\u06cc\u06a9 \u0633\u0648\u0627\u0644 \u062e\u0648\u062f"},"aioseo_meta_data":{"post_id":"1216","title":null,"description":null,"keywords":null,"keyphrases":{"focus":[],"additional":[]},"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-08-04 15:25:33","updated":"2026-08-08 17:58:41"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/gamsbook.ir\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/gamsbook.ir\/?cat=12\" title=\"4 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0633\u0626\u0644\u0647\">4 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0633\u0626\u0644\u0647<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/gamsbook.ir"},{"label":"4 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u0633\u0626\u0644\u0647","link":"https:\/\/gamsbook.ir\/?cat=12"},{"label":"\u0627\u0646\u0648\u0627\u0639 \u062d\u0644\u0642\u0647 \u062f\u0631 \u06af\u0645\u0632 | GAMS loops","link":"https:\/\/gamsbook.ir\/?p=1216"}],"_links":{"self":[{"href":"https:\/\/gamsbook.ir\/index.php?rest_route=\/wp\/v2\/posts\/1216"}],"collection":[{"href":"https:\/\/gamsbook.ir\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gamsbook.ir\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gamsbook.ir\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gamsbook.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1216"}],"version-history":[{"count":14,"href":"https:\/\/gamsbook.ir\/index.php?rest_route=\/wp\/v2\/posts\/1216\/revisions"}],"predecessor-version":[{"id":1829,"href":"https:\/\/gamsbook.ir\/index.php?rest_route=\/wp\/v2\/posts\/1216\/revisions\/1829"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gamsbook.ir\/index.php?rest_route=\/wp\/v2\/media\/1828"}],"wp:attachment":[{"href":"https:\/\/gamsbook.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gamsbook.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gamsbook.ir\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}