-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Integer variables in GP #1590
Comments
@adishavit This is currently not supported. See #1446 for details. |
@phschiele this is the first situation I've seen where the limitation of one attribute per variable is a real impediment. I'm starting to think that maybe multiple attributes should be allowed. Something to discuss in the discord. @adishavit this is a very interesting use case! If you have too much trouble making a |
I remember a discussion on the GPKit repo about this kind of functionality. Here's a summary of the situation and a suggested plan of attack if someone wants to volunteer for this. Constraining a variable to take on specific values in mixed-integer convex programmingHere's a function that takes a scalar expression
The initial constraints in Using
|
Hi! I would like to try working on this issue |
That's great to hear @aryamanJgl! Please feel free to follow up here with questions. |
To clarify for those who find themselves here: the |
Closed via #2041 which adds DGP canonicalization of |
Hey @phschiele, I've read the Is there any equivalent to this, v = cp.Variable((n, m), integer=True, pos=True) without using, v = cp.Variable((n, m), integer=True)
cons = [v >=0] with the help of |
There is not. What is the harm of
? |
@yasirroni Is your problem also related to DGP, where you need the variable to be classified as being positive? |
Is it possible to solve a mixed integer geometric program?
Currently, one can set just one attribute: either
integer=True
ofpos=True
. The latter is mandatory for GP problems.Is there a way of somehow using integer variables in GPs despite this (other than using the as Real and rounding)?
The text was updated successfully, but these errors were encountered: