Originally Posted by VBAhack
A few comments:
1. As to what to minimize, I don't think there is a universal answer. I think it depends on the values that v & w can take. You'll probably need to find a few examples by whatever means and study them to convince yourself which form the residual function should take: v*w or v2 + w2, etc.
2. Re derivatives, some optimization methods don't need them, but derivatives can be estimated if v=f(x,y) and w=f(x,y) are smooth and continuous by using central or forward differencing.
3. I saw a clever random optimization algorithm that successively zeroed in on the values that produce minimin results. It went something like this. Take x random points within pre-set bounds of the independent variables. Rank the results in order of increasing objective function. Pick the best y cases, determine new bounds on independent variables (hopefully smaller bounds than originally), then repeat until some sort of convergence criteria is met. If you want, I could dig around and find the reference. The thing is a function to minimize is needed, which takes you back to 1.
4. What you really have is simultaneous minimization of two functions, v and w that have the same independent variables.