I'm implementing on Xpress a problem with different solution proposed on a paper. The idea is to decompose a matrix X into a convex sum of 0 1 matrices. Among the constraints of the problem, the previous one can be written as:
equations = []
for i in agents:
for j in objects:
equation = xp.Dot(M[i,j,:], weights) == X[i,j]
equations.append(equation)
agents_assining.addConstraint(equations)
where agents_assinig is the problem I'm trying to resolve and X is a given matrix. The code gives the error:
?864 Error: Quadratic constraint rows must be of type 'L' or 'G'. Wrong row type for row R112.
and I'm not sure how to deal with it. Important note: my license for xpress is not full, it is just the the community one.