Angle of Elevation in Pathloss

Coming up with a good or adequate convex optimization problem to model your phenomenon of interest is up to you, and is out of scope of this forum.

You can consider whether you might be better off using a non-convex optimization problem formulation, for instance using YALMIP. But that is your decision to make.