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

Implement Quadratic Constraints/Objectives #400

Open
dirkschumacher opened this issue Jan 27, 2022 · 1 comment
Open

Implement Quadratic Constraints/Objectives #400

dirkschumacher opened this issue Jan 27, 2022 · 1 comment
Assignees

Comments

@dirkschumacher
Copy link
Owner

With the new MIPModel this is now possible. It requires some changes in ompr.roi and additional classes and operators.

@dirkschumacher dirkschumacher self-assigned this Mar 13, 2022
@mallerhand
Copy link

This is good news, especially now we have the NEOS plugin so can workaround problems installing Rcplex.
Are these changes in the development version, and do you plan to put it on CRAN soon?

Function "set_objective" (ompr v1.0.2) seems to have difficulty parsing a non-linear expression:
model = MIPModel()
model = add_variable(model, x, type="continuous")
model = set_objective(model, x*x, sense="min") # Quadratic expressions are not supported (ok)
model = set_objective(model, x^2, sense="min") # non-numeric argument to binary operator (!)

Keep up the good work Dirk :)

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

2 participants