Following is a piecewise function. I need to optimize it. q is the decision variable while the objective is to minimize the overall function subject to the constraint that it never gets zero.
How can I optimize this piecewise. all other variables other than q are constant values.