% Simulation of webserver in overload situations
% KJA, 2006

aminit;
queue_noconevent;			% load data

% Set up and run the simulation
dt = 0.1; t = 0:dt:80; x0 = 0;
[t, x] = ode45('queue_model', t, x0);

% Plot the results of the simulation
subplot(321)
pl=plot(t, x, 'b--');
set(pl,'Linewidth', AM_data_linewidth);

% Plot the data
hold on;
stairs(nocondata(:,1),nocondata(:,2));

% Label the plot
xlabel('Time {\it} [s]');
ylabel('Queue length {\itx}_{\ite}');
amaxis([0 80 0 20]);

amprint('queue-overload.eps');
