How to execute for-loop iterations in parallels in MATLAB using Gurobi as a solver?

2 次查看(过去 30 天)
Hello,
I have a MIP problem, which I decomposed into subproblems, and I want to solve these subproblems using Gurobi in MATLAB. The only thing that changes in each subproblem is the objective function, and all the constraints are the same for all the subproblems.
When I try the "parfor," I get an error that it can not run due to the way variable "modela" used (I attached the loop). Can anyone help me with it?
Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Parallel for-Loops (parfor) 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by