Desktop productivity for business analysts and programmers

IML NLPNRA

Reply
N/A
Posts: 0

IML NLPNRA

Hello,

I created a matrix (named SIM) in PROC IML, and needed use the elements in SIM to run CALL NLPNRA. I assumed that the the matrix would be recognized in the module created by START/FINISH. However, SAS always gave the error message indicating that SIM was a blank matrix. I thus tried READ, USE, ... in the module, they did not work. Is there a specific statment in START/FINISH to read the matrix into the module?
SAS Super FREQ
Posts: 3,418

Re: IML NLPNRA

Use a GLOBAL statement as part of the definition of the objective function module:
start my_func(x) global(sim);
/* access elements of sim as part of optimizing x */
finish;
Ask a Question
Discussion stats
  • 1 reply
  • 98 views
  • 0 likes
  • 2 in conversation