Re: [R] Manipulate solution of simplex

2009-06-19 Thread Jorge Ivan Velez
Dear Ana, Are you optimizing a linear function? If so, the simplex() function in the boot package (see [1]) is what you are using. Using the example at ?simplex (after loading the boot package): res <- simplex(a = enj, A1 = fat, b1 = 13800, A2 = rbind(vitx, vity, vitz), b2 = c(600, 300, 5

Re: [R] Manipulate solution of simplex

2009-06-19 Thread David Winsemius
On Jun 19, 2009, at 4:51 AM, Ana Ramos wrote: Hi, I need some help. I'm doing a project that demands me to obtain several simplex solutions and I would like to can keep the solution in a vector or something to be able to use it after I get it. The comand simplex() prints the solution but

[R] Manipulate solution of simplex

2009-06-19 Thread Ana Ramos
Hi, I need some help. I'm doing a project that demands me to obtain several simplex solutions and I would like to can keep the solution in a vector or something to be able to use it after I get it. The comand simplex() prints the solution but how can I keep it? Another alternative would be to expo