Does Optim not support function optimization with matrix variables?

Can you read this discussion? I don’t know if Optim doesn’t support general AbstractArrays very well, or if my function itself defines the problem.
https://discourse.julialang.org/t/no-method-matching-isless-array-float64-2-array-float64-2/48086