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

1D element constraint for variable arrays #198

Open
Wikunia opened this issue Dec 5, 2020 · 0 comments
Open

1D element constraint for variable arrays #198

Wikunia opened this issue Dec 5, 2020 · 0 comments
Labels

Comments

@Wikunia
Copy link
Owner

Wikunia commented Dec 5, 2020

This is the third of several issues for the element constraint. (See #196 and #197 )
It's also the more formal issue for #195 and #164

It would be great to index variable 1D arrays with a variable like:

@variable(m, 1 <= c[1:7] <= 10, Int)
@variable(m, 1 <= idx <= 7, Int)
@constraint(m, c[idx] == 5)
@Wikunia Wikunia added the enhancement New feature or request label Dec 5, 2020
@Wikunia Wikunia mentioned this issue Feb 7, 2022
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant