Skip to content
Prev 334319 / 398502 Next

solving simultaneous Equations in R

On 11-12-2013, at 23:56, eliza botto <eliza_botto at hotmail.com> wrote:

            
I don?t quite understand what you you mean.
Your starting values obey the restrictions you specify (if that is what you meant).
The solution vector has all elements > 1. But it is a solution.

Do you mean that you want a solution satisfying the constraints you mention?
I cannot tell if that is possible.

Generally speaking a square system of equations is solved or not.

Sometimes you can vary the starting values to get a different solution that obeys the specified constraints.
If these constraints  are necessary you are not solving a system of equations but trying to find a  parameter set that satisfies certain criteria. Together with a criterion (sum of squares of function values for example) you could use an optimizing algorithm (optim, nlmin, constrOptim to name a few).

Berend