You would probably do best to use the ga mixed integer optimization capability. Have your five variables be integer-valued. Internally, in the objective function, change the variables to their appropriate values, something like this: function y = objfun(x)
v1 = 1500 + 500*x(1);
v2 = 50 + 5*x(2);
v3 = 5 + x(3);
v4 = 5 + x(4);
v5 = 5 + x(5);
end
Call the ga solver with IntCon = 1:5. Set lower bounds of zeros(5,1) so each variable is 0 or greater, and upper bounds of [4,10,10,10,10]. There is a similar example here. Alan Weiss
MATLAB mathematical toolbox documentation
Best Answer