# Compute conflict indexed output for gurobi

**URL:** <https://discourse.julialang.org/t/compute-conflict-indexed-output-for-gurobi/67585>\
**Category:** Optimization (Mathematical)\
**Tags:** question, jump, optimization\
**Created:** [September 2, 2021, 3:06pm UTC](https://discourse.julialang.org/t/compute-conflict-indexed-output-for-gurobi/67585 "2021-09-02T15:06:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manoj.centura](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manoj.centura/32/216443_2.png) [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Post date:** [September 2, 2021, 3:06pm UTC](https://discourse.julialang.org/t/compute-conflict-indexed-output-for-gurobi/67585/1 "2021-09-02T15:06:28Z")

</div>

Hi All,  
i am using compute conflict with gurobi  
the sample code and output is given as

```julia
 @constraint(model,conexisting20[p in 1:P, b in 1:B],sum(ME_B_O_20[b,c,p]*C_s20[c] for c in 1:C)==Moves20[p,b] )
println("======================conexisting20") #conexisting20
println(MOI.get.(model, MOI.ConstraintConflictStatus(), conexisting20)) 
the output is

======================conexisting20
MathOptInterface.ConflictParticipationStatusCode[MathOptInterface.NOT_IN_CONFLICT
 MathOptInterface.NOT_IN_CONFLICT
 MathOptInterface.NOT_IN_CONFLICT
 MathOptInterface.NOT_IN_CONFLICT
 MathOptInterface.NOT_IN_CONFLICT
 MathOptInterface.NOT_IN_CONFLICT
 MathOptInterface.IN_CONFLICT
 MathOptInterface.NOT_IN_CONFLICT
 MathOptInterface.NOT_IN_CONFLICT
is there a way to get the proper p and b index for above output.
Thanks,
```

---

<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:** [September 2, 2021, 9:55pm UTC](https://discourse.julialang.org/t/compute-conflict-indexed-output-for-gurobi/67585/2 "2021-09-02T21:55:13Z")

</div>

Please provide a reproducible example.

If you run

```julia
conflict = MOI.get.(model, MOI.ConstraintConflictStatus(), conexisting20)

```

`conflict` should have the same type and shape as `conexisting20`. So you can access it as `conflict[p, b]`.
