{"height":"190","type":"rich","categories":[" python ","\u7dda\u5f62\u8a08\u753b\u6cd5"],"url":"https://inarizuuuushi.hatenablog.com/entry/2022/02/26/130514","author_url":"https://blog.hatena.ne.jp/inarizuuuushi/","blog_url":"https://inarizuuuushi.hatenablog.com/","provider_url":"https://hatena.blog","author_name":"inarizuuuushi","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finarizuuuushi.hatenablog.com%2Fentry%2F2022%2F02%2F26%2F130514\" title=\"gurobipy \u30a8\u30e9\u30fc - Sabrou-mal \u30b5\u30d6\u30ed\u30a6\u4e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"gurobipy \u30a8\u30e9\u30fc","published":"2022-02-26 13:05:14","image_url":null,"blog_title":"Sabrou-mal \u30b5\u30d6\u30ed\u30a6\u4e38","description":"gurobipy \u3068\u306f GUROBI optimizer\u304c\u63d0\u4f9b\u3059\u308bpython\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u3059. pip \u3067 install\u3067\u304d\u307e\u3059. gurobipy\u3092\u30af\u30e9\u30b9\u5185\u3067\u7528\u3044\u308b\u3068\u304d\u306e\u6ce8\u610f\u70b9; \u4e0b\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f2\u5909\u6570(x, y)\u304b\u3089\u306a\u308b\u7c21\u5358\u306a\u6700\u9069\u5316\u554f\u984c\u3092\u6c42\u89e3\u3059\u308b\u3082\u306e. solve()\u95a2\u6570\u3067\u554f\u984c\u306e\u5b9a\u5f0f\u5316\u3068\u6c42\u89e3\u3092\u884c\u306a\u3063\u3066\u3044\u307e\u3059. self.x\u3068self.y\u306bgurobipy\u306e\u5909\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8(gurobipy.Var)\u3092\u683c\u7d0d\u3057\u3066\u3044\u307e\u3059; import gurobipy class Problem: def __init__(self): self.x = None self.y = None def\u2026","width":"100%","provider_name":"Hatena Blog","version":"1.0"}