[R] Challenge

Silvano silvano at uel.br
Wed Feb 22 13:49:05 CET 2012


Hi,

I have the following equation:

x1 + x2 + x3 - 2(x4 + x5 + x6) + 3(x7) = N

each x_i can take any value: 1, 2, 3, 5, 6, 10, 15 or 30 and
each one is different from each other.

Which combination of values ??in the formula which leads to 
the smallest value of N?

How can I program this situation?

--------------------------------------
Silvano Cesar da Costa
Departamento de Estatística
Universidade Estadual de Londrina
Fone: 3371-4346



More information about the R-help mailing list