Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How to call Nminimize inside another Nminimize' topicStudent Support Forum > General > "How to call Nminimize inside another Nminimize"

Next Comment >Help | Reply To Topic
Author Comment/Response
Ali
07/10/06 1:41pm

I am trying to use NMinimize command to find the minimum value of a function which contains another NMinimize call in itself with constraints depending on the function input and I am getting "NMinimize::bcons Constraints should be equalities, inequalities, or domain specifications involving the variables" error message. A simple example will be:
f1[x_, y_] := NMinimize[{t^2, t > x, t < y}, t]
f2[z_]:= NMinimize[{f1[x,y],x>-z,x<z,y>-z,y<z},{x,y}]
I was wondering what would be the best way to solve this problem.


URL: ,

Subject (listing for 'How to call Nminimize inside another Nminimize')
Author Date Posted
How to call Nminimize inside another Nminimize Ali 07/10/06 1:41pm
Re: How to call Nminimize inside another Nminim... VL 07/10/06 9:17pm
Re: How to call Nminimize inside another Nminim... Mesut 07/15/06 00:58am
Re: How to call Nminimize inside another Nminim... VL 01/04/07 6:54pm
Next Comment >Help | Reply To Topic