Hi TurbineBlade,
NPSH available should be at least 10% greater than NPSH required...usually I use a range of
NPSHa=(1.15 to 1.35)*NPSHAr. The reason to use greater NPSHa from NPSHr is to avoid incipient cavitation.
Regards
regarding the simple optimization problem you have...the best help you can get is from MATLAB help menu.Also check the site of Mathworks for several tips.
If you have specific queries...post a short description of your problem and i'd be glad to help you as far as i know...
Generally we use...