Forgot password
 Register account
View 129|Reply 1

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

[Copy link]

132

Threads

251

Posts

1

Reputation

Show all posts

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

3175

Threads

7937

Posts

48

Reputation

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

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-1 03:25 GMT+8

Powered by Discuz!

Processed in 0.013526 seconds, 22 queries