Extract coefficients matrix from constraint matrix

229 views
Skip to first unread message

Cheng Wang

unread,
Sep 7, 2014, 3:21:22 AM9/7/14
to yal...@googlegroups.com
Hi everyone:
    If I have formed the constraint matrix of a optimization problem using yalmip, donated as F. How can I extract the coefficients matrix of F?
    for example, the constraints are as follows
----------------------------------------
         s.t. x1+x2<=1
               x2+x3<=1
              x1+x2+x3<=1
---------------------------------------
   suppose I have promgramed those constraints using yalmip, donated as F. if I want to get the following matrix, is there an existing order?

coefficients matrix of F=[1 1 0; 0 1 1; 1 1 1].

Thanks!
              

Johan Löfberg

unread,
Sep 7, 2014, 6:34:58 AM9/7/14
to yal...@googlegroups.com

Cheng Wang

unread,
Sep 7, 2014, 7:14:26 AM9/7/14
to yal...@googlegroups.com
Thanks!
[model,recoverymodel] = export(F,f,sdpsettings('solver','cplex')) can solve my problem.
Reply all
Reply to author
Forward
0 new messages