Coder Social home page Coder Social logo

Comments (1)

psalvy avatar psalvy commented on September 27, 2024

Good day Svetlana,

The second error is infeasibility with the Gurobi solver, mishandled by cobra. Probably the lower bound you ask for is higher than the achievable objective function in the TFA problem. Since this happens at the beginning of the relax_lc function, this suggests that your TFA model cannot achieve that high a growth rate.

The first error looks like it wants to relax 0 constraints, so the table has 0 elements and no columns, and the column name change is crashing because of that. That is because with a lower bound of 0, there is by definition no relaxation to be made.

These two items (infeasible model at the beginning of the function + no relaxation needed) seem to suggest the TFA model grows much slower than FBA predictions.

Could you try:

  1. Optimize the tfa model with no relaxation nor extra constraints. Report the solution value
  2. Ask for relaxation with a very low non-zero lower bound (1e-3 for example). What is the result ?
  3. When you get infeasibility, run the function debug_iis from the debugging module. This will give you a list of infeasible constraints / variable bounds. If there is around or less than 10 of each, can you post them here please ?
  4. Also, are you using DeltaG from eQuilibrator or from the provided `thermo_data' ? how much of your model is covered by thermodynamics ?

Cheers,
Pierre

from pytfa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.