-
Notifications
You must be signed in to change notification settings - Fork 120
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
[Feature Request] Support Boolean Indexing for Constraints #707
Comments
PRs accepted. It's pretty much just this method, but for Convex.jl/src/atoms/IndexAtom.jl Lines 112 to 118 in cc71b51
|
I can add those with |
Add a new function after: Lines 470 to 544 in cc71b51
I assume you want something like: target = """
variables: x1, x2, x3
minobjective: [1.0 * x1, 1.0 * x3]
"""
_test_atom(target) do context
x = Variable(3)
y = BitVector([true, false, true])
return x[y]
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems there is no support for using
BitVector
in constraints.A simple (Stupid) example:
If one define
vPi = findall(vP);
then[vX[vPi] == vY[vPi]]
will work.The text was updated successfully, but these errors were encountered: