Hello,
I have some Matlab algorithms on my Windows machine that use fmincon and I am currently attempting to replace fmincon with SNOPT. When using fmincon I was able to pass additional parameters to my objective and nonlinear constraint functions by declaring these functions to be anonymous. My question is whether there is a way to pass additional parameters to the objective and nonlinear constraint functions when I use SNOPT as well?
Initial testing indicates that I can't declare these functions to be anonymous without receiving an error. However, if I define my functions in the way shown in the SNOPT examples, i.e., @toyCon, then this function cannot receive the necessary extra parameters it needs and fails. Any suggestions?
Thank You,
Robert Pritchett