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
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
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
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
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
to YALMIP
Suspected to be not possible to represent exactly with standard cones:

bao hanqiu

unread,
8:55 AM (3 hours ago) 8:55 AM
to YALMIP
Thanks a lot!
Reply all
Reply to author
Forward
0 new messages