Forgot password?
 Create new account
View 84|Reply 1

有没有使用gurobi的坛友,有一些问题想请教

[Copy link]

133

Threads

259

Posts

2333

Credits

Credits
2333

Show all posts

郝酒 Posted at 2024-12-24 12:04:55 From the mobile phone |Read mode
RT,感觉网上相关的信息好少,私信交流

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2024-12-25 06:30:07

在Mathematica中使用Gurobi

reference.wolfram.com/language/ref/method/Gurobi.html
Minimize $x^2 + 2 y^2$ subject to the constraint $x+y=1$ with method "Gurobi":
  1. NMinimize[{x^2 + 2 y^2, {x + y == 1}}, {x, y}, Method -> "Gurobi"]
Copy the Code

Minimize $\|\{x, y\}\|$ subject to the constraints $x+y \geq \pi, y \leq 1$ for integer $x$ with method "Gurobi":
  1. ConvexOptimization[
  2. Norm[{x, y}], {x + y >= Pi, y <= 1}, {x \[Element] Integers, y},
  3. Method -> "Gurobi"]
Copy the Code

手机版Mobile version|Leisure Math Forum

2025-4-20 22:09 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list