Skip to content
Discussion options

You must be logged in to vote

The problem is that argmin is not one of the accepted nonlinear functions. You can always check with all_registered_functions to see what functions can be used to build nonlinear expressions. Like JuMP, we can register new nonlinear functions to use. A current limitation of this interface is that each function must be scalar valued (not vector inputs/outputs). We hope to remove this limitation in the relatively near future (#229).

In this case, we cannot register directly since argmin is vector valued. However, if Fu is a scalar (or we can easily enumerate it with scalar components) then we can register the cost function:

@register(model, cost(Fu))

And then use it when defining the object…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@pulsipher
Comment options

Answer selected by pulsipher
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