Skip to content
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

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

Closed
hariszaf opened this issue May 12, 2023 · 3 comments
Closed

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

hariszaf opened this issue May 12, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@hariszaf
Copy link
Collaborator

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.

@hariszaf hariszaf added the enhancement New feature or request label May 12, 2023
@vissarion
Copy link
Member

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
Copy link
Collaborator Author

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

@hariszaf
Copy link
Collaborator Author

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

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

No branches or pull requests

2 participants