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, 550), maxi = TRUE)

Then

str(res)

gives you the structure of the res object. To get the solution vector, just
type:

res$soln
#  x1   x2   x3   x4
#  0.0  0.0 13.8  0.0

HTH,

Jorge

[1]
http://astrostatistics.psu.edu/datasets/2006tutorial/html/boot/html/simplex.html


On Fri, Jun 19, 2009 at 4:51 AM, Ana Ramos <aritaramos@gmail.com> 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 how can I keep it?
> Another alternative would be to export it to excel, how can I do this?
>
> I just see the solution and have to note it on a paper or something?
>
> Thanks
>
> Ana
>
>        [[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.
>

	[[alternative HTML version deleted]]


