Unverified Commit 84a8e9d1 authored by St. Elmo's avatar St. Elmo
Browse files

stuck :(

parent 655a0166
......@@ -19,6 +19,7 @@ JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
MAT = "23992714-dd62-5051-b70f-ba57cb901cac"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
OSQP = "ab2f91bb-94b4-55e3-9ba0-7f65df51de79"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
......
......@@ -16,6 +16,7 @@ using Statistics
using Random
using Tulip # for LPs
using OSQP # for QPs, but it kinda sucks
using MacroTools # for DSL :)
import Base: findfirst, getindex, show
import Pkg
......
"""
@flux_balance_analysis model optimizer
"""
macro flux_balance_analysis_vec(model, optimizer)
model = esc(model)
optimizer = esc(optimizer)
return :(flux_balance_analysis_vec($model, $optimizer))
end
"""
@flux_balance_analysis model optimizer
"""
macro flux_balance_analysis_vec(model, optimizer, kws)
model = esc(model)
optimizer = esc(optimizer)
v = Expr(:vect)
for m in MacroTools.striplines(esc(kws).args).args
push!(v.args, m)
end
kwarg = Expr(:kw, :modification, :($v)) # ????
# return flux_balance_analysis_vec($model, $optimizer; kwarg)
end
"""
flux_balance_analysis_vec(args...)::Union{Vector{Float64},Nothing}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment