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

MIPModel expression builder bug with coefficients after variable #265

Closed
dirkschumacher opened this issue Jun 14, 2019 · 1 comment
Closed
Labels

Comments

@dirkschumacher
Copy link
Owner

a <- b <- 1
m <- MIPModel() %>% 
  add_variable(x) %>% 
  set_objective(x * a * b) %>% 
  add_constraint(x <= 1)

stopifnot(as.numeric(objective_function(m)$solution) == 1)
@dirkschumacher
Copy link
Owner Author

Is fixed in MIPModel2 which will, fingers crossed, become the successor of MIPModel. See #349

dirkschumacher added a commit that referenced this issue Jan 6, 2022
It has been fixed by the new MIPModel
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