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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to