Skip to content
Discussion options

You must be logged in to vote

For functions that depend only on infinite parameters such as this one, we can use the parameter function syntax (https://pulsipher.github.io/InfiniteOpt.jl/stable/guide/expression/#par_func_docs). In this case you can do:

@parameter_function(m, qint_func == t -> qint(t))
@constraint(m, deriv(V, t) == qint_func)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by notesofdabbler
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants