Closed timholy closed 10 months ago
Hi @timholy, are you trying to define the disjunction for every i, j? If so, you currently need to add the disjunction inside a loop for each index. For your reference, we are working on a rewrite that will allow indexing disjunctions as is done with the constraint macro in JuMP.
@timholy , the new version 0.4.0 will allow indexing in the @disjunct
macro (to create arrays of disjunctions). Let me know if there is still interest in this and I can provide some sample code.
I am hoping to perform optimization on two matrices
MW
andMH
constrained by their product,MW*MH = D
whereD
is diagonal. If I definertD = sqrt.(sqrt.(diag(D)))
then the following work:but adding
results in