In using mixture models with response surface methodology in determining the optimum conditions for a process, statisticians use weighed variables with the trend for maximizing, minimizing or to match a target criterion in order to get a response variable which is again weighed to maximize, minimize or to achieve a target value. In using RSM for R software It is bit difficult and I need assistance in how to get this done with statistical packages R or MATLAB. If you can help please send me a demonstrated example.