Hi there,
I am writing an optimization program using mata, in which the
objective function is given by obj(). However, my program cannot run
because of the following error:
: void obj (todo, r, C, g, H)
> {
> M1 = st_data(.,`M1')
> M2 = st_data(.,`M2')
> M3 = st_data(.,`M3')
> M4 = st_data(.,`M4')
> M5 = st_data(.,`M5')
> M6 = st_data(.,`M6')
> M7 = st_data(.,`M7')
> M8 = st_data(.,`M8')
too many string literals
(217 lines skipped)
-------------------------------------------------------------------------------------------------------------------------------------------------------------
r(3000);
end of do-file
r(3000);
Macros Mi has been defined at the beginning of the program. By
defining these macros, I try to avoid writing a very long line of
variables in the objective function.
Any help and suggestion is highly appreciated!
Sincerely,
John
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/