x i + y i cos ( p i k − a i )...
All and are parameters, I need to solve for , , , for all .
Answer & Explanation
For purposes of this exposition, let's presume you have a system of inequalities in n variables, which has been put into the form (trivial to do)
where is the by vector of variables.
Solve (using an optimizer which can handle the nonlinear inequalities) the following nonlinearly-constrained optimization problem: (but see the generalization below).
minimize with respect to x,M subject to
If the optimal objective of this problem is zero, then you have found a feasible solution to the original system of nonlinear inequalities. If it is positive, then the original system of nonlinear inequalities is infeasible (does not have an exact solution), but you will have found a solution which is close as possible to feasible, as measured per the objective function of the optimization problem.
You can use a different objective function in order to prioritize different levels of errors and relative importance of compliance among the various constraints. For instance, more generally consider an objective function such as
where , which allows a nonlinear "non-compliance" penalty and allows different weights for the different inequalities. The simple version presented above corresponds to all and . If you want to get really fancy, need not be the same for all inequalities.
It is also possible to linearize the inequalities using substitutions :