File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ Change history for MOST
55since version 1.1
66-----------------
77
8+ #### 11/10/22
9+ - Update ` addgen2mpc() ` to expand fixed reserve parameters to keep sizes
10+ compatible.
11+
812#### 9/29/22
913- Silence near singular matrix warnings in some tests that began with
1014 MATLAB R2022b.
Original file line number Diff line number Diff line change 8888 error(' addgen2mpc: GEN_TYPE must be a string (or cell array of strings) indicating the fuel type of the new generators' );
8989end
9090
91+ %% expand reserves parameters, if present
92+ if isfield(mpco , ' reserves' )
93+ ngr = size(mpco .reserves .cost , 1 );
94+ %% expand zones
95+ mpco .reserves .zones(end , ng + nr ) = 0 ;
96+ if ngr == ng %% expand cost and qty
97+ mpco .reserves .cost(ng + nr , 1 ) = 0 ;
98+ if isfield(mpco .reserves , ' qty' )
99+ mpco .reserves .qty(ng + nr , 1 ) = 0 ;
100+ end
101+ end
102+ end
103+
91104NewGenIdx = ( ng + 1 : size(mpco .gen ,1 ) )' ;
Original file line number Diff line number Diff line change 1919v = struct( ' Name' , ' MOST' , ...
2020 ' Version' , ' 1.2-dev' , ...
2121 ' Release' , ' ' , ...
22- ' Date' , ' 29-Sep -2022' );
22+ ' Date' , ' 10-Nov -2022' );
2323if nargout > 0
2424 if nargin > 0
2525 rv = v ;
You can’t perform that action at this time.
0 commit comments