Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
Nazanin Madani
Nazanin Madani le 26 Juin 2020
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

Réponses (0)

Catégories

En savoir plus sur Parallel for-Loops (parfor) dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by