Skip to content
Prev 294918 / 398506 Next

Optimization inconsistencies

peter dalgaard <pdalgd <at> gmail.com> writes:
Use the equality constraint to reduce the dimension of the problem by one.
Then formulate the inequality constraints and apply, e.g., constrOptim().
You can immediately write down and use the gradient, so method "L-BFGS-B" is
appropriate.

Because the problem is linear, there is only one maximum and no dependency
on starting values. 

If you had supplied some data and code (which packages did you try, and how?),
a more concrete answer would have been possible. My own test example worked
out of the box.

Hans Werner