You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yal...@googlegroups.com
my model has a following constraint:
A'XAY==C,
in which A is a symmetrical matrix with 0, 1 constants,
X is a diag matrix of 0-1 variables,
Y is a matrix of real variables,
C is a constant matrix.
obviously nonlinear terms are contained in this constraint,
is there any tricks to convert it into linear constraints, or any solver can solve it directly?
Johan Löfberg
unread,
Jun 8, 2014, 1:37:04 PM6/8/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yal...@googlegroups.com
Yes, products between continuous variables and binaries can easily be converted to a pure MILP model by using the fact that x*y is equal to y if x is 1 and equal to 0 if x is zero, i.e., a purely logical property.
YALMIP implements this for general polynomial expressions in binmodel. Hence, your model can be solved with any MILP solver and YALMIP as
A = randn(3,3); X = diag(binvar(3,1)); Y = sdpvar(3,3,'full'); knownY = randn(3); C = A'*A*knownY;