Forgot password?
 Register account
View 174|Reply 1

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

[Copy link]

132

Threads

251

Posts

2288

Credits

Credits
2288

Show all posts

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

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2024-12-25 06:30

在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|Discuz Math Forum

2025-6-5 01:15 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit