Can't you just discard any negative values as solutions once the system is solved?
fsolve in maple?
I am trying to solve systems of nonlinear equations with fsolve.
Since the variables are the concentrations with physical meaning, all of them should be always positive or zero.
However some values during the iteration and final results are negative. Is there any trick to keep all the values positive or zero during iteration and final results?
Your comment would be appreciated.
Thanks for interest.
The fsolve is in Matlab.
Negative values should be discarded because those will not have physical meanings. Since the negative values will affect on the iteration of other values, all the values during the iteration and at the last iteration should be positive or zero.