Open davidzentlermunro opened 9 years ago
Getting this also.
From what I can see here it appears that with either the smooth or min max reformulation of the problem the objective is evaluated at the proposed solution before bounds on the proposed solution are enforced.
@sebastien-villemot is this part of the algorithm? is there a way to reformulate the problem such that constraints are satisfied before evaluating the objective?
Is this still an issue? I am also getting values outside of my defined bounds. I can provide more details if necessary.
Is this still an issue? I am also getting values outside of my defined bounds. I can provide more details if necessary.
I don't think anything was done to remedy this, so this is probably still an issue. Is your problem relatively simple?
Do note the discussion here though: https://github.com/JuliaNLSolvers/NLsolve.jl/issues/100 . The transformation begin done only penalizes deviations from the bounds. The underlying algorithm still assumes that you can evaluate F outside of the bounds. It's not a non-linear solver with constraints as such. I'm not sure what would happen if we just projected the state back into the box, but we may have to be a bit careful if we do.
The problem isn't too difficult. I am boarding a plane now, but I can post it later. This isn't a huge issue; however, the documentation could be a little clearer about the lack of bound enforcement, for the unenlightened like me. I posted my problem in the forums since it appears better addressed there. Thanks for the package!
I'm still having problems with this!
I'm getting a domain error when running the NLsolve code given below: "DomainError in ^ at math.jl:252" I think this is because mcpsolve is straying out of the zero one bounds I have given it, and so tries to evaluate the root of a negative number. Is this something that could/should be fixed? I may well be wrong in my diagnosis though - happy to be corrected.
David