GeomScale / dingo

A python library for metabolic networks sampling and analysis
GNU Lesser General Public License v3.0
42 stars 27 forks source link

sample asking for a min/max value of the objective function #65

Closed hariszaf closed 5 months ago

hariszaf commented 1 year ago

One might need to sample using not a fixed value for the objective function but asking its value to be at least or at the most $c$.

It would be really useful for the flux sampling function to provide this option.

vissarion commented 1 year ago

If I understand correctly your inquiry, for an objective function $a$, one can add $ax\leq c$ (or $ax\geq c$) as a new inequality and sample from the new polytope.

hariszaf commented 1 year ago

Exactly! This was also needed in Régimbeau et al. paper you mentioned in #64 .

hariszaf commented 5 months ago

Issue solved in #9 and is able setting the set_opt_percentage argument.