模型
模型
Gurobi模型对象。Gurobi Shell中的模型对象上的常用方法包括优化(优化模型),printstats.(打印有关模型的统计信息),printattr.(打印属性的值),以及写(将有关模型的信息写入文件)。建立模型时常用的方法包括addvar.(添加一个新变量),addvars.(添加多个新变量),addconstr.(增加一个新约束),和addConst.(添加多个新约束)。
小节
- 模型()
- model.addconstr()
- model.addconstrs()
- model.addgenconstrxxx()
- model.addgenconstrmax()
- model.addgenconstrmin()
- model.addgenconstrabs()
- model.addgenconstrand()
- model.addgenconstror()
- model.addgenconstrindicator()
- model.addlconstr()
- model.addqconstr()
- model.addrange()
- model.addsos()
- model.addvar()
- model.addvars()
- model.cbcut()
- model.cbget()
- model.cbgetnoderel()
- model.cbgetsolution()
- model.cblazy()
- model.cbsetsolution()
- model.cbusesolution()
- model.chgcoeff()
- Model.ComputeIIS()
- model.copy()
- model.discardconcurrentenvs()
- model.discardmultiobjenvs()
- model.feasrelaxs()
- model.feasrelax()
- Model.fixed()
- model.getattr()
- model.getcoeff()
- model.getcol()
- model.getconcurrentenv()
- model.getConstryName()
- model.getConstrs()
- model.getgenconstrmax()
- model.getgenconstrmin()
- model.getgenconstrabs()
- model.getgenconstrand()
- model.getgengonstror()
- model.getgenconstrindicator()
- model.getgenconstrs()
- model.getmultiobjenv()
- model.getobjective()
- model.getparaminfo()
- model.getpwlobj()
- model.getqconstrs()
- model.getQcrow()
- model.getrow()
- model.getsos()
- model.getsoss()
- model.gettuneresult()
- model.getvarbyname()
- model.getvars()
- Model.Message()
- model.Optimize()
- model.presolve()
- model.printattr()
- model.printquality()
- model.printstats()
- model.read()
- model.relax()
- model.remove()
- model.reset()
- model.resetparams()
- model.setattr()
- model.setObjective()
- model.setObjectiven()
- model.setpwlobj()
- model.setParam()
- model.terminate()
- model.tune()
- model.update()
- model.write()