Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark mode
Gurobi Optimizer Reference Manual
Light LogoDark Logo

Concepts

Features

Reference

Gurobi
Back to top

gurobipy.GenExpr#

classGenExpr#

Gurobi general expression object. Objects of this class are created by aset ofgeneral constraint helper functionsfunctions. They are temporary objects, meant to be used in conjunctionwith overloaded operators to buildTempConstr objects, whichare then passed toaddConstr oraddConstrs to buildgeneralconstraints.

To be more specific, the following creates aGenExpr object…

max_(x,y)

The following creates aTempConstr object…

z==max_(x,y)

The following adds a general constraint to a model…

model.addConstr(z==max_(x,y))

Please refer to theTempConstr documentation for moreinformation on building general constraints.

Help and Feedback

On this page

[8]ページ先頭

©2009-2025 Movatter.jp