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

Allow OptimizerWithAttributes in parameters #393

Closed
guimarqu opened this issue Oct 3, 2020 · 0 comments
Closed

Allow OptimizerWithAttributes in parameters #393

guimarqu opened this issue Oct 3, 2020 · 0 comments
Assignees
Labels
bug Something isn't working good first issue ux

Comments

@guimarqu
Copy link
Contributor

guimarqu commented Oct 3, 2020

Describe the bug

If I do something like

 coluna = JuMP.optimizer_with_attributes(
           Coluna.Optimizer,
           "default_optimizer" => JuMP.optimizer_with_attributes(Gurobi.Optimizer, "Thread" => 1)
       )

I'll have the following error :

ERROR: ArgumentError: ModelLike of type Coluna.Optimizer does not support accessing the attribute MathOptInterface.NumberOfConstraints{MathOptInterface.ScalarAffineFunction{Float64},MathOptInterface.LessThan{Float64}}()

Expected behavior

An instance of OptimizerWithAttributes should be allowed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue ux
Projects
None yet
Development

No branches or pull requests

2 participants