Conversion of "sine function to convex form

valvepointloading

How can I convex the sine function in the objective function?

Your experience and information in this regard will be highly important to me.

With the hope of getting positive news from you,

Wishing you a wonderful day.

Best regards,

Trigonometric functions are neither convex nor concave,. They can only be “convexified” by means of an approximation, such as a suitable Taylor series. The one term Taylor series approximation for sin(x) is x, and the two term Taylor series approximation is x - x^3/6, which is neither convex nor concave. A higher order Taylor series approximation for sin(x) will be neither convex nor concave.

Edit: Now I see you have an absolute value around the sin term. Only the one term Taylor series approximation could be used.

I recommend you use a non-convex nonlinear solver, which you can not do via CVX. You can consider using YALMIP. Why isn't CVX accepting my model? READ THIS FIRST!

1 Like

Thank you for your reply.

Thank you for your reply, I would like to ask whether the sine function can adopt the first-order Taylor expansion, sin(x0)+cos(x0)(x-x0)? Since the sine function rarely appears in optimization, I don’t know whether it’s reasonable to do so

How did you deal with it in the end?