cobratoolbox icon indicating copy to clipboard operation
cobratoolbox copied to clipboard

Error when running chrrSampler, "x0 not interior"

Open Bastien-N opened this issue 1 year ago • 2 comments

Good afternoon,

I have run into a problem with the chrrSampler, more specifically the rounding part of it. The model I am using is the latest version of the Human1 model (https://github.com/SysBioChalmers/Human-GEM).

The exact error is: " Error using mve_solver_cobra (line 29) x0 not interior

Error in mve_run_cobra (line 32) [x,E2,converged] = mve_solver_cobra(A,b,x0,maxiter,tol2,reg); %Ben

Error in preprocess (line 255) [T_shift, Tmve,converged] = mve_run_cobra(P.A,P.b, x0,reg);

Error in chrrSampler(line 110) [roundedPolytope] = preprocess(P,options); "

From the tests I was able to do, it seems that somehow the getCCcenter function defined in preprocess does not return a point that is interior to the polytope, but it does not give an error either.

I also have:

  • Tried a fresh installation of matlab, gurobi, and cobraToolbox on different hardware. This did not work.
  • Tried sampling a different smaller model, which went fine.

I hereby confirm that I have:

  • [X] Tried to solve the issue on my own
  • [X] Retried to run my code with the latest version of The COBRA Toolbox
  • [X] Checked that a similar issue has not already been opened

Bastien-N avatar Nov 14 '22 12:11 Bastien-N