Hello,
I have to analyze a big number of cases with OptimizeCbModel, and to reduce time I was trying to parallel one of the steps.
I read that the optimization of a linear problem cannot be done in a multi thread, so I was trying with a parallel for (parfor command, MATLAB). However, when running my code I am getting the following error :
Error using solveCobraLP (line 103)
No solver found. call changeCobraSolver(solverName)
Error in optimizeCbModel (line 159)
solution = solveCobraLP(LPproblem);
I have installed gurobi5 and this problem does not present when running the same code with a normal for. Any idea of why could this be happening? My code is basically this:
range=0:0.1:1;
alpha=1;
ErrorRef=1000;
maux=changeObjective(maux,maux.rxns(posBiom),[alpha beta gamma]);
maux=changeRxnBounds(NewModel,NewModel.rxns(posmATP(1)),j,'b');
maux=changeRxnBounds(maux,NewModel.rxns(posmATP(2)),k,'b');
maux=changeRxnBounds(maux,NewModel.rxns(posmATP(3)),l,'b');
pesos(u,:)=[alpha beta gamma];
error(u)=sum((100*abs(f.x(posBiom))-datos(:,end))./datos(:,end));