Skip to content

Error when running chrrSampler, "x0 not interior" #2069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
Bastien-N opened this issue Nov 14, 2022 · 2 comments
Open
3 tasks done

Error when running chrrSampler, "x0 not interior" #2069

Bastien-N opened this issue Nov 14, 2022 · 2 comments

Comments

@Bastien-N
Copy link

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:

  • Tried to solve the issue on my own
  • Retried to run my code with the latest version of The COBRA Toolbox
  • Checked that a similar issue has not already been opened
@rmtfleming
Copy link
Member

rmtfleming commented Nov 15, 2022 via email

@Bastien-N
Copy link
Author

Hi Ronan,

Yes exist('solveCobraLP') == 2 is true. As for the numerical precision I suspect this is where the issue arise. However I struggle finding a solution as the input model does not have such small ranges. The smallest reaction range is 0.0039. From teh basic polytope of my model I can actually get an interior point.

However, after the first few transformations (restricting to the degenerate subspace, scaling by row_norms) most of P.A and P.b are populated by values in the order of 1e-16. After gmscale this is even worse.

As for RHMC, it seems from initial tests that it is much slower than CHRR, which becomes an issue due to the scale of the model.

Best,
Bastien

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants