i have a non linear optimization problem and i am trying to solve it via lagrange multipliers.
I have 2 constraints, one with a lower bound that requires $f>0$ and one with an upper bound that requires $f<1$. The problem is very complicated so i solve it in 2 steps, using 2 different lagrangians, one for each constraint. So i search for a combination from the results that satisfies my constraints.
In some cases, because i have vectors as inputs, i did not manage to to get a solution $(x,y)$ that satisfies both $f>0$ and $f<1$. Is it because i split the problem? Thanks in advance
P.S i tried not to split the problem, and have one lagrangian with 2 constraints but because of the complexity of maths, maple and matlab did not return values. Thanks in advance.
Interesting, if you have an alaytic $f$, it would help if you could paste it here. I don't think it is any more complex to handle another boundry constraint...
Maybe the problem is an anemic solver... can you try representing the problem differently? Let $f$ be your optimization function, then you can explicitly constrain $0 < f < 1$ (instead of using a complex expression which a dumb solver may not identify with the optimization function) and then minimize $f$.
I.e. if you are minimizing some complex expression, constrain $f=\{\text{that expression}\}$ and add a constraint $0 < f < 1$ and then minimize $f$...