


Update the constraints matrix -------------------------------------------------------------------------- Date: Aug 13, 2008, ver01 By: Hooman Askari --------------------------------------------------------------------------


0001 % Update the constraints matrix 0002 %-------------------------------------------------------------------------- 0003 % Date: Aug 13, 2008, ver01 0004 % By: Hooman Askari 0005 %-------------------------------------------------------------------------- 0006 function A = update_constraints(A, numBlocks, numOfPeriods, updateVector) 0007 0008 for iPeriods = 1:numOfPeriods 0009 0010 start = (numBlocks *(iPeriods-1))+1; 0011 finish = (numBlocks *(iPeriods-1))+ numBlocks; 0012 0013 temp(iPeriods, start:finish) = updateVector; 0014 end 0015 % update A 0016 A = [A; temp]; 0017 end