Skip to content

Matrix Constraints in R Optim

1 message · Jeff Newmiller

#
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