How do you install glpk-solver along with pyomo in Winpython

前端 未结 4 1348
暖寄归人
暖寄归人 2021-01-06 15:16

I want to use \"pyomo\" for my studies. I installed pyomo via easy_install coopr install instructions, Pyomo needs a solver to work so I wanted to install the

4条回答
  •  不思量自难忘°
    2021-01-06 15:56

    FYI, you can now use Coopr without installing local solvers. The latest Coopr release supports an interface with the NEOS solver. For example, if your MILP model is in the file model.py, then the following command would optimize the model using CBC:

    pyomo --solver-manager=neos --solver=cbc model.py
    

提交回复
热议问题