On Saturday 19 November 2005 19:17, Patrick Burns wrote:
> [....snip...] One cheat would be to do the LP problem
> multiple times with the rows of your matrix randomly
> permuted. Assuming you keep track of the real rows,
> you could then get a sense of how many solutions there
> might be.
Thanks for the answer. The trick does work (i.e. it finds all minimum
solutions) provided that I permute the rows a sufficient number of times. And
I have to compare each solution to the existing (unique) ones, which takes a
lot of time...
In your experience, what would be the definiton of "multiple times" for large
matrices?
My (dumb) solution is guaranteed to find all possible minimums, because it
checks every possible combination. For large matrices, though, this would be
really slow. I wonder if that could be vectorized in some way; before the LP
function, I was thinking there might be a more efficient way to loop over all
possible columns (using perhaps the apply family).
Thanks again,
Adrian
--
Adrian DUSA
Romanian Social Data Archive
1, Schitu Magureanu Bd
050025 Bucharest sector 5
Romania
Tel./Fax: +40 21 3126618 \
+40 21 3120210 / int.101
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html