Code error, ask for directions

How have you proven that the RHS of that inequality constraint is concave?

I will assume that constraint is non-convex,until you prove otherwise.