Hello sorry to bother again,
The SolveTime()
works.
When I tried the same way to retrieve MIP relative gap, it gave me error again.
gap_info = MOI.get(model, MOI.RelativeGap())
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()
it works. It seems like some of the attributes are not working. Could you give me some insight about why would this happen? Thank you.