-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
Wrapper: MathOptInterfaceRelates to the MathOptInterface APIRelates to the MathOptInterface API

Description
Hello,
When I try to obtain in the MIP the relative gap and number of nodes, it gave me error:
gap_info = MOI.get(model, MOI.RelativeGap())
Num_nodes = MOI.get(model, MOI.NodeCount())
The error message is
MethodError: no method matching get_relative_mip_gap(::CPLEX.Optimizer)
Closest candidates are:
get_relative_mip_gap(!Matched::LinQuadOptInterface.MockLinQuadOptimizer) at
However, I used the same code to retrieve ObjectiveBound() and CPU time it works. It seems like some of the attributes are not working. Could you give me some insight about why would this happen or to implement in CPLEX.jl in a new version?
Thank you.
Metadata
Metadata
Assignees
Labels
Wrapper: MathOptInterfaceRelates to the MathOptInterface APIRelates to the MathOptInterface API