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 Feature: Add Vectorized semantics revisited of MILPModel to MIPModel #445

Open
sbmack opened this issue Jul 28, 2023 · 0 comments
Open

Comments

@sbmack
Copy link

sbmack commented Jul 28, 2023

From the ompr documentation section MILPModel Vectorized semantics revisited:

n <- 10L
MILPModel() %>% 
  add_variable(x[i, j], i = 1:n, j = 1:n) %>% 
  add_constraint(x[i, j] == 1, i = 1:n, j = 1:n, i == j) %>% 
  add_constraint(x[1:n, 1:n] == 1) # this this equivalent

That code fails with MIPModel but it is a very nice feature also found on commercial model managers. Can it be incorporated into MIPModel? Thanks, SteveM

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

No branches or pull requests

1 participant