# MOI.Test.Config optimal\_status OPTIMAL or LOCALLY\_SOLVED?

**URL:** <https://discourse.julialang.org/t/moi-test-config-optimal-status-optimal-or-locally-solved/75227>\
**Category:** Optimization (Mathematical)\
**Tags:** question, jump\
**Created:** [January 26, 2022, 1:03pm UTC](https://discourse.julialang.org/t/moi-test-config-optimal-status-optimal-or-locally-solved/75227 "2022-01-26T13:03:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![renke.kuhlmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/renke.kuhlmann/32/15384_2.png) [@renke.kuhlmann](https://discourse.julialang.org/u/renke.kuhlmann)\
**Post date:** [January 26, 2022, 1:03pm UTC](https://discourse.julialang.org/t/moi-test-config-optimal-status-optimal-or-locally-solved/75227/1 "2022-01-26T13:03:24Z")

</div>

Is there a way to simply accept both `optimal_status` `OPTIMAL` and `LOCALLY_SOLVED` in `MOI.Test.Config`? For GAMS.jl I can’t really decide this, because it depends on what solver GAMS internally chooses. Would be great if I would not have to disable a whole test because of this.

I tried:

```julia
MOI.Test.Config(
        atol = 1e-5,
        rtol = 1e-5,
        optimal_status = MOI.LOCALLY_SOLVED,
        exclude = Any[
            MOI.TerminationStatus
        ],
    );

```

but this doesn’t seem to work.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [January 26, 2022, 7:49pm UTC](https://discourse.julialang.org/t/moi-test-config-optimal-status-optimal-or-locally-solved/75227/2 "2022-01-26T19:49:59Z")

</div>

Hmm. We haven’t considered this.

What you might have to do is manually split the tests into an exclude/include list. But that’s not a robust solution.

Perhaps open an issue at MOI and we can discuss.

---

<div class="post-metadata">

**Author:** ![renke.kuhlmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/renke.kuhlmann/32/15384_2.png) [@renke.kuhlmann](https://discourse.julialang.org/u/renke.kuhlmann)\
**Post date:** [January 26, 2022, 8:02pm UTC](https://discourse.julialang.org/t/moi-test-config-optimal-status-optimal-or-locally-solved/75227/3 "2022-01-26T20:02:05Z")

</div>

Okay, no problem. I decided to hard code a single specific solver that should support most features (so that GAMS would not select another solver internally). Only works for users who have this solver licensed then.
