Skip to content

Implement macros for all functions (where appropriate) #149

Answered by exaexa
stelmo asked this question in Ideas
Discussion options

You must be logged in to vote

anyway, it might be better not to over-macro the code in some parts. A minilanguage is certainly viable for combining the modifications (although there should be a normal functional variant of the code), but the example below may read easier as a normal function:

res = flux_balance_analysis_vec(model, Tulip.optimizer,
  modifications=@mods begin
    objective(biomass)
    constraint(glucose, -8, -8)
  end)

(even then the code can still be shorter with a normal vector [])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by laurentheirendt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #61 on April 30, 2021 07:26.