Skip to content

Making a function for a different type of FBA #1350

Answered by cdiener
joeybentley asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, so you should not need to change any code. As far as I understand all that is supported with what is there. $\sum_i D_i \cdot v_i < C$ is a constraint and not really an objective. Do you still want to to maximize the biomass here? Another thing is that if you consider irreversible fluxes then this is a bit odd since your $v_i$ can be negative. Or do you want to do something like a cost optimization? In that case you probably meant $\sum_i D_i \cdot |v_i| < C$ which would be something like a weighted PFBA constraint. Assuming that is what you want to do, here is some example code. I will assume that your D_i is a dictionary-like object with reaction IDs as keys (I will just gener…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joeybentley
Comment options

Answer selected by joeybentley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants