Skip to content

Gap in JuMP v0.19 #230

@ghost

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions