how to model a non-convex function in its convex area

23 views
Skip to first unread message

bao hanqiu

unread,
Sep 8, 2025, 8:27:56 AMSep 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 AMSep 8
to YALMIP
Why would you complicate it? t>=0.2 and you are done.

bao hanqiu

unread,
Sep 9, 2025, 1:12:29 AMSep 9
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,
Sep 9, 2025, 1:54:54 AMSep 9
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,
Sep 9, 2025, 4:13:34 AMSep 9
to YALMIP
Suspected to be not possible to represent exactly with standard cones:

bao hanqiu

unread,
Sep 9, 2025, 8:55:04 AMSep 9
to YALMIP
Thanks a lot!
Reply all
Reply to author
Forward
0 new messages