Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: MC constructor without known subgradients #63

Closed
kamilkhanlab opened this issue Sep 15, 2023 · 1 comment · Fixed by #64
Closed

Request: MC constructor without known subgradients #63

kamilkhanlab opened this issue Sep 15, 2023 · 1 comment · Fixed by #64

Comments

@kamilkhanlab
Copy link

Hi all,

It'd be great to have a constructor for MC which takes just the cv, cc, and Intv arguments, for situations where we don't know or care about subgradients. This specific constructor would be useful when playing around with e.g. the various McCormick composition rules, and the Scott-Barton relaxations of ODE solutions, and when introducing these concepts to new students.

Of course we can already "roll our own" constructor based on MC's default constructor, but this requires a user to know what an SVector is and how to use it, and to know what a subgradient is.

Kamil

@DimitriAlston DimitriAlston linked a pull request Sep 15, 2023 that will close this issue
@DimitriAlston
Copy link
Member

Thanks for the request, we have added this to the next version of McCormick.jl. Similar to the other constructors where the user doesn't provide subgradients or an indication of the object's dimension, McCormick will set the subgradients equal to 0 by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants