{"version":"1.0","height":"190","categories":["GAMS","\u7814\u7a76"],"author_name":"shiro_takeda","blog_title":"\u6b66\u7530\u53f2\u90ce\u306e\u30a6\u30a7\u30d6\u30ed\u30b0","provider_name":"Hatena Blog","published":"2011-10-09 04:44:20","width":"100%","description":"\u3044\u3064\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u3089\u304b\u306f\u306f\u3063\u304d\u308a\u899a\u3048\u3066\u3044\u307e\u305b\u3093\u304c\uff0822\u306e\u5f8c\u534a\u304b\u3089\uff1f\uff09\u3001GAMS\u306b\u30de\u30af\u30ed\u306e\u6a5f\u80fd\u304c\u5b9f\u88c5\u3055\u308c\u307e\u3057\u305f\u3002 \u30de\u30af\u30ed\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b$macro\u547d\u4ee4\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002 set i / 1*10 / ; parameter a(i) b(i) ; a(i) = ord(i); $macro f(i) a(i)**2 b(i) = f(i); display b; $macro\u304b\u3089\u59cb\u307e\u308b\u884c\u3067\u30de\u30af\u30edf(i)\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u305d\u306ef(i)\u3068\u3044\u3046\u30de\u30af\u30ed\u306fb(i)=f(i)\u3068\u3044\u3046\u90e8\u5206\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u30de\u30af\u30ed\u306f\uff08\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\uff09\u5c55\u958b\u3055\u308c\u308b\u306e\u3067\u3001\u4e0a\u306e\u30b3\u30fc\u30c9\u306f\u5b9f\u884c\u6642\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 set i \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshiro-takeda.hateblo.jp%2Fentry%2F1588\" title=\"GAMS\u306e\u30de\u30af\u30ed\u6a5f\u80fd\uff08$macro\uff09 - \u6b66\u7530\u53f2\u90ce\u306e\u30a6\u30a7\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/shiro_takeda/","image_url":null,"url":"https://shiro-takeda.hateblo.jp/entry/1588","type":"rich","blog_url":"https://shiro-takeda.hateblo.jp/","title":"GAMS\u306e\u30de\u30af\u30ed\u6a5f\u80fd\uff08$macro\uff09"}