Dear fellows: This is the problem: I have 5 variables A, B, C, D and E  
with a range from 1 to 100 with 0.1 steps. Depending on the different  
values these have, the results of the formula change:

alitemp  <- ((Abase/llmcc$Clase)*PClase)+(((1/llmcc 
$Categoria)*Abase)*PCategoria)+((Abase*llmcc$Phi)*PPhi)+((Abase*llmcc 
$Rf)*PRf)

So, alitemp (a 283 element series) changes if any of the P** values  
changes. I need to find a combinations of those 5 variables that  
approximates the desired results. Although I can make use of a 'for'  
loop, Im not sure of how to combine the whole 5 variables changing at  
once. I understand there are many possible combinations (factorial of  
5000!, 422 with some 500 digits) but I surmise there must be a better  
way to do it.
So far, I have been changing them manually, but this task make the  
whole thing terribly slow and inneficient.
Any ideas are appreciated.
Thanks.

Cuanto mas grande son, mas daño hacen. Postulado de Perkin.
------------------------------
Jesús Guillermo Andrade (Abg.)
Gerente de Litigios y Corporativo. EDM. AC. API.
Andrade & Moreno S.C. (http://amlegal.wordpress.com/)


        [[alternative HTML version deleted]]

______________________________________________
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