Skip to content

Parameter functions with variable dependencies #207

Answered by pulsipher
IlyaOrson asked this question in Q&A
Discussion options

You must be logged in to vote

The parameter function syntax just provides a way to implement arbitrary functions that only depend on infinite parameters (no variables allowed). Functions of variables should be expressed algebraically if at all possible. In the above case it looks like you can just use an inner product instead p' * x.

We can also register functions following our nonlinear syntax, but this should be only done as a last resort (since JuMP does not give 2nd order derivatives for multivariate registered functions). Note that in like manner to JuMP, we do not currently support vector valued inputs for registered functions. Though we plan to support this in the future.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by IlyaOrson
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