Skip to content

(no subject)

8 messages · Wei-han Liu, Longo, EMLL (Eduardo), John Laing +3 more

#
Hi there:
?
I am practicing the new R package DEoptim
and following the paper titled ?Large-scale portfolio optimization with DEoptim? as attached.
?
I am wondering if there is error in this package or else because when I tried the commands listed in
Section 6. Portfolio optimization with DEoptim but encountered some error
message as listed below:
Error in NextMethod(.Generic) : dims
[product 121] do not match the length of object [40401]
Also : Warning message: In `-.default`(0.5
* dmvnorm(x, c(-3, -3)) + 0.5 * dmvnorm(x, c(3,? : ??longer
object length is not a multiple of shorter object length
?
Could somebody share some hint or help?
?
Thank you for your kind consideration and
response.
?
Wei-han Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/87045804/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Large-scale portfolio optimization with DEoptim.pdf
Type: application/pdf
Size: 139438 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20111214/87045804/attachment.pdf>
#
Hi Eduardo,

Apologies, but my Portuguese (?) is a bit rusty. If you can
temporarily switch the language to English that would make it easier
for me to understand the error messages.

Also, please run these commands and send the results:
sessionInfo()
installed.packages()[c("rJava", "RBloomberg"), ]

Thanks,
John

On Wed, Dec 14, 2011 at 9:22 AM, Longo, EMLL (Eduardo)
<Eduardo.Longo at rabobank.com> wrote:
#
It seems to be a Java installation problem. I had similar problems.

On my architecture (Win 7 64 bit), I firstly installed jre 1.6 64 bit, then
R version 2.14, then installed rJava and RBloomberg.

On Wed, Dec 14, 2011 at 4:18 PM, Ulrich Staudinger <
ustaudinger at activequant.org> wrote:

            

  
    
#
On Wed, Dec 14, 2011 at 5:25 AM, Wei-han Liu <weihanliu2002 at yahoo.com> wrote:
No need to attach a paper that's provided in the package.
You need to provide a lot more information for anyone to help.  See
the posting guide, especially the section on "Surprising behavior and
bugs".
http://www.r-project.org/posting-guide.html

There are 4 blocks of commands in Section 6 of the paper.  You need to
tell us which commands create the error.
Best,
--
Joshua Ulrich  |  FOSS Trading: www.fosstrading.com
#
Please copy the list so others can benefit.
On Wed, Dec 14, 2011 at 7:02 PM, Wei-han Liu <weihanliu2002 at yahoo.com> wrote:
"Gets stuck" is not an error.  The first block of code in Section 6
takes a long time to run (16 minutes on a 2.2Ghz processor) and is
currently running fine on my laptop.

You still have not followed the posting guide.  As I asked in my
previous email, please read and follow the instructions in the
"Surprising behavior and bugs" section of the posting guide.
Best,
--
Joshua Ulrich  |  FOSS Trading: www.fosstrading.com