# Query Solution Time

**URL:** <https://discourse.julialang.org/t/query-solution-time/22263>\
**Category:** Optimization (Mathematical)\
**Created:** [March 24, 2019, 1:00am UTC](https://discourse.julialang.org/t/query-solution-time/22263 "2019-03-24T01:00:49Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![octavia9](https://avatars.discourse-cdn.com/v4/letter/o/97f17d/32.png) [@octavia9](https://discourse.julialang.org/u/octavia9)\
**Post date:** [March 24, 2019, 5:28pm UTC](https://discourse.julialang.org/t/query-solution-time/22263/6 "2019-03-24T17:28:11Z")

</div>

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.

---

_[View the full topic](https://discourse.julialang.org/t/query-solution-time/22263)._
