Newbie here. Appreciate any insights. I am trying to create a DCP complaint structure. I am trying to create a constraint and minimization that looks at the combination of the valid items selected and the corresponding weights. I understand using the product is not compliant and I was wondering if there is a better way to express this. Appreciate any insights
Specifically, constraint such as
# cp.sum(cp.multiply(valid_items,wts)) == 1.0 <----- Non DCP compliant product
Sorry that nobody ever responded to this; we don't look at this repo much. For the benefit of others who come here, please visit https://ask.cvxr.com/ for questions about DCP.
Newbie here. Appreciate any insights. I am trying to create a DCP complaint structure. I am trying to create a constraint and minimization that looks at the combination of the valid items selected and the corresponding weights. I understand using the product is not compliant and I was wondering if there is a better way to express this. Appreciate any insights
Specifically, constraint such as
And minimization object such as
Psuedo Code: