Hello! I know I can use something like ` findall(x->x==1, myArray)`

to find the indices of elements of value 1 inside `myArray`

.

However, my variables in my optimization problem are DenseAxisArrays, as they are indexed with numbers and strings. So when I do, for example:

`findall(x->x==1,JuMP.value.(Z))`

I get:

```
ERROR: MethodError: no method matching CartesianIndices(::Tuple{Array{Any,1},Array{Any,1},Base.OneTo{Int64}})
Closest candidates are:
CartesianIndices(::JuMP.Containers.DenseAxisArray) at C:\Users\Alfredo\.julia\packages\JuMP\qhoVb\src\Containers\DenseAxisArray.jl:111
CartesianIndices(::AbstractArray) at multidimensional.jl:264
CartesianIndices(::Tuple{}) at multidimensional.jl:255
```

How could I get the indices?

**Edit: here’s a minimal working example**

```
using JuMP, Cbc
m = Model(Cbc.Optimizer)
TASKS = ["TASK1"]
EQUIPMENTS = ["EQUIPMENT1"]
@variable(m, Z[E in EQUIPMENTS, T in TASKS, 1:32], Bin)
@constraint(m, sum(Z)==1)
@objective(m, Min, sum(Z))
optimize!(m)
#output
println(JuMP.value.(Z))
println(JuMP.objective_value(m))
println(JuMP.termination_status(m))
println("Finished!")
```