Question: Procedure - assuming positive values for the output

Dear experts, I am using a procedure called Powell(f, Xmin0) with the input parameters f (it is a function) and Xmin0. It is a kind of optimization tool. The poutput is X. It contains the 2 optimized values. The problem is that it is also optimizing with negative values. But I want that it stops when X becomes smaller than 0 so hegatibe. How can I implement that in the algorithmus in an easy way? Thanks a lot!
Please Wait...