clear all; close all;
% problem data
T=100;              % planning horizon
alpha=0.2; beta=1;  % generator cost parameters
Pmin=0; Pmax=10;    % generator limits
Q=5; C=1; D=1;      % battery parameters
d = zeros(T,1);     % fixed load schedule
d(1:20)=3; d(21:56)=5; d(57:60)=11; d(61:80)=4; d(81:90)=10; d(91:100)=3;

% YOUR CODE HERE