Thanks!
On Wednesday, September 10, 2014 5:47:15 PM UTC+1, Steven G. Johnson wrote: > > On Wednesday, September 10, 2014 10:12:39 AM UTC-4, Jude wrote: >> >> In my model I iterate over a lot of different values and solve a >> constrained optimisation problem but for some values of my lower and upper >> bounds I get an error saying "invalid NLopt arguments". I am not sure why >> as my lower bound is < upper bound in all the iterations. I tried to >> understand this using a more simple example such as the following but even >> for this simple example if I set the bounds to (1,100) it's fine but if I >> use (2,100) I get the same error. Why is this?: >> > > You get an error with (2,100) because your initial guess (1) is outside > of the bounds. As long as you have an initial guess that is inside the > bounds, your example code works for me. >
