update_constraints

PURPOSE ^

Update the constraints matrix

SYNOPSIS ^

function A = update_constraints(A, numBlocks, numOfPeriods, updateVector)

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 08-Jul-2009 18:57:55 by m2html © 2003