Scientific Work Place to Matlab Formula Converter
Copy/Paste your swp formula on the left and get on the right the matlab/scilab/R formula :o)
Result's here.
Endogenous variables (non linear optimization)