Not sure if this is a bug or just a set-up issue. I am running MATLAB 2009a and cannot get the Fmincon/optimizer to work. I receive an error message of:

Interpreting scripts from the file.

***** file: C:\NWO - Boulder\GMAT Scripts\occ_trial_optimize.script

Running mission...

**** ERROR **** Interface Exception Thrown: Error returned from try,

fminconexist = exist('fmincon');

catch

errormsg = lasterr;

end

*** Mission run failed.

My script is set up as

Create FminconOptimizer SQP1;

GMAT SQP1.DiffMaxChange = 0.000001; % Real number

GMAT SQP1.DiffMinChange = 0.0000000001; % Real number

GMAT SQP1.MaxFunEvals = 3000; % Real number

GMAT SQP1.MaxIter = 2000; % Real number

GMAT SQP1.TolX = 0.0001; % Real number **independent variables tolerance

GMAT SQP1.TolFun = 0.000001; % Real number **cost function tolerance

GMAT SQP1.TolCon = 0.00001; % Real number **contraint function tolerance

GMAT SQP1.DerivativeCheck = Off; % {On, Off}

GMAT SQP1.Diagnostics = On; % {On, Off}

GMAT SQP1.Display = Iter % {Iter, Off, Notify, Final}

GMAT SQP1.GradObj = Off; % {On, Off}

GMAT SQP1.GradConstr = Off; % {On, Off}

GMAT SQP1.SourceType = 'MATLAB\R2009a';

Without the last line i get an error

Interpreting scripts from the file.

***** file: C:\NWO - Boulder\GMAT Scripts\occ_trial_optimize.script

Running mission...

**** ERROR **** Interface Exception Thrown: Error returned from try,

path('./matlab/', path)

catch

errormsg = lasterr;

end

*** Mission run failed.

===> Total Run Time: 4.704000 seconds

I have my matlab path set to open all the Matlab folders in the GMAT folder where I run the program from.

Appreciate your help - if its a bug and not just a stupid mistake I'd be glad to submit this all as a bug report

-brad