Skip to content
Prev 361841 / 398506 Next

Matrix Constraints in R Optim

Always reply-to-all to keep the mailing list informed... I don't do private consulting online. 

You look like you have plain text worked out, but we still cannot run your code. 

Read the Posting Guide and [1]. You cannot attach Excel files here (and many R users can't or won't do that anyway) so you need to figure out dput. You will know you have a reproducible example when you don't read from any files and the code produces the error you are asking about when run in a newly opened R session.  I think you should (!) only need the dput of my.data.var, definition of Error.func, and the call to optim if you do it right. 

[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
Message-ID: <9C392FEC-2FE8-477F-AFB3-15089E3286B9@dcn.davis.ca.us>
In-Reply-To: <CAPq=xQAhSXVjuk_uSwnz8-4AE388YSmBeuBmfG7hiwO_i=xRVg@mail.gmail.com>