I am pretty unfamiliar with MATLAB so I had someone originally help me with the code. Problem is for some reason I have the output of the function structured like below and I am getting something more akin to a status output then the actual values which would be more like the specific quantities at each given interval.
If I need to include more of the code in my description just let me know.
Output code format:
%%5) Solve optimization problem
[x,fval,exitflag,output] = intlinprog(problem); outputString = output.message; end % Plot results
%bar(p1:p2,x,0.5);
%fprintf('\n\nAverage set:\t%4.2f\n',avg);
%fprintf('Average opt:\t%4.2f\n',(p1:p2)*x/N);
Resulting output:
Intlinprog stopped at the root node because the objective value is within a gap tolerance of the optimal value; options.TolGapAbs = 0 (the default value). The intcon variables are integer within tolerance, options.TolInteg ans =
Best Answer