MATLAB: Remove the message “optimization terminate” in bintprog

bintprogoptimizationoptions

how to remove the message "optimization terminate" in bintprog? I use this code, but still error :
??? Error using ==> bintprog at 125
BINTPROG only accepts inputs of data type double.
Error in ==> efisien4proyek at 42
[x,fval]=bintprog(f,A,B,Aeq,Beq,options);
options = optimset('Display','off');
[x,fval]=bintprog(f,A,B,Aeq,Beq,options);

Best Answer

You cannot put options immediately after Beq. When you pass the options structure, there needs to be a slot for x0 between Beq and options.