In testing Snopt 3.0 support in YALMIP, I noticed it crashes on a silly QP without any constraints, called via general nonlinear snopt.
f_df = @(x)(deal(x'*x,x'))
G = [1 1];
snopt([0;0], [-inf;-inf], [inf;inf], [0;0], [0;0],-inf, inf, 0, 0, f_df,0, 1,[],G)
Error using snoptmex
iGfun has incorrect column dimension 2. Should be length 1
Error in solve_snopt (line 17)
xstate,Fstate,itn,mjritn] = snoptmex(mexopt, ...
Error in snopt (line 434)
xstate,Fstate,output] = solve_snopt(istart, stopFun, name, ...