Added MATLAB rewrite of the CARNOT optimisation function
This commit is contained in:
parent
adf4d0e02a
commit
7f9719cc64
15 changed files with 463 additions and 0 deletions
8
Simulink/weather_predictor2.m
Normal file
8
Simulink/weather_predictor2.m
Normal file
|
@ -0,0 +1,8 @@
|
|||
function w = weather_predictor2(wdb_mat,timestamp, N)
|
||||
%WEATHER_PREDICTOR2 Summary of this function goes here
|
||||
% Detailed explanation goes here
|
||||
curr_idx = find(wdb_mat(:, 1) == timestamp);
|
||||
N_idx = (1:N) + curr_idx;
|
||||
w = [wdb_mat(N_idx, 18) + wdb_mat(N_idx, 19), wdb_mat(N_idx, 7)];
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue