Groups
Groups
Sign in
Groups
Groups
YALMIP
Conversations
Labels
About
Send feedback
Help
Adding element-wise constraint on each vector entry
11 views
constraint
Skip to first unread message
Jack1
unread,
Jul 24, 2019, 11:46:05 AM
7/24/19
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 YALMIP
I have three vectors
a, b, c
of the same dimension.
I would like to constrain each element-wise difference: |
a_i
-
b_i
|
<
c_i
I was wondering how could I do so in a for loop in Yalmip easily? thank you.
Johan Löfberg
unread,
Jul 24, 2019, 11:57:39 AM
7/24/19
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 YALMIP
abs(a-b)<=c or more efficiently norm(a-b,inf) <= c or manually -c<=a-b<=c
Johan Löfberg
unread,
Jul 24, 2019, 11:58:04 AM
7/24/19
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 YALMIP
i.e no reason to use a for-loop
Reply all
Reply to author
Forward
0 new messages