how to model a non-convex function in its convex area
17 views
Skip to first unread message
bao hanqiu
unread,
Sep 8, 2025, 8:27:56 AM (yesterday) Sep 8
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
Dear Johan,
I have a problem which i cannot handle.
For example, sqrt((1 - t)/t) is convex as 0<t≤0.75. So how can I model sqrt((1 - t)/t)<=2 , 0<t≤0.75 in yalmip to make yalmip recognize this constraint as a convex constraint?
Thanks a lot!
Hanqiu Bao
Johan Löfberg
unread,
Sep 8, 2025, 8:43:28 AM (yesterday) Sep 8
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
Why would you complicate it? t>=0.2 and you are done.
bao hanqiu
unread,
1:12 AM (10 hours ago) 1:12 AM
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
Because what I need to solve is a complex constraint, for instance, ax+sqrt((1-t)/t)<=b, where both x and t are optimization variables
Johan Löfberg
unread,
1:54 AM (10 hours ago) 1:54 AM
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 don't see any easy way. If possible, it will require a series of clever variable changes and sandwiching.
Michal Adamaszek
unread,
4:13 AM (7 hours ago) 4:13 AM
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
Suspected to be not possible to represent exactly with standard cones: