Question: How to minimize an integral using NLPSolve?



Error, (in Optimization:-NLPSolve) integration range or variable must be specified in the second argument, got 1. = 1. .. 1.

 



Download issue.mw

Hi, I'm new to Maple and trying to use the minimizer to find the values of 'u' and 'b' that get the value of my objective function as close to 0 as possible (I therefore take the absolute value of the function before minimizing).  Above is what I have and the error I keep getting.  I would really appreciate any suggestions.  Thanks!

Here it is if it's not showing up above:

NLPSolve(abs(int((1-x)*(1-(.2*u*(1-u)/(x*(1-x))-.2)^(1/4)), x = b .. u)-0.05), {b>=0, b<=u})

edit:

I have also tried the Int command as the inert form of int since the integral has no closed-form solution.  When I try this I get a different error:

Error, (in Optimization:-NLPSolve) invalid arguments

Please Wait...