yeild objective

25 views
Skip to first unread message

Daniel Farkas

unread,
Oct 17, 2023, 7:22:41 AM10/17/23
to cobra pie
Dear cobrapy community,

I am trying to set the objective function to be the ATP production yield. The below code does not work, because it is not a linear function. Do you know how to get around this problem?


ATPyield_objective = model.problem.Objective(
    model.reactions.ATPS4rpp.flux_expression/model.reactions.EX_glc__D_e.flux_expression,
    direction='max')
model.objective = ATPyield_objective
solution = model.optimize()

Thank you kindly,

Daniel
Reply all
Reply to author
Forward
0 new messages