Skip to content
Snippets Groups Projects
Select Git revision
  • 108c0d284b03cf3057a1655129747e07aa8e9a8d
  • main default protected
  • gitkeep
  • dev protected
  • Issue/2914-trellisMigrator
  • Issue/2847-reporting
  • Hotfix/2776-workingNewVersion
  • Hotfix/xxxx-correctAssignments
  • Issue/2666-adminCronjobs-theSequal
  • Issue/2666-adminCronjobs
  • Issue/2518-docs
  • Hotfix/xxxx-coscineGraph
  • Issue/2304-virtuosoRoars
  • Fix/v0.1.7-dependencies
  • Hotfix/2212-fixFiles
  • Issue/2222-resourceDateCreated
  • Issue/2221-projectDateCreated
  • Hotfix/xxxx-changeUrls
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1782-structualDataIntegration
  • Issue/2084-migrateResourceStructuralData
  • v0.1.24
  • v0.1.23
  • v0.1.22
  • v0.1.21
  • v0.1.20
  • v0.1.19
  • v0.1.18
  • v0.1.17
  • v0.1.16
  • v0.1.15
  • v0.1.14
  • v0.1.13
  • v0.1.12
  • v0.1.11
  • v0.1.10
  • v0.1.9
  • v0.1.7
  • v0.1.8
  • v0.1.6
  • v0.1.5
41 results

ResourceStructuralData.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    reduction_factor_creation_new.m 1.63 KiB
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    % Function to calculate reduction factor
    %
    % @author Marco Pau <mpau@eonerc.rwth-aachen.de>
    % @copyright 2019, Institute for Automation of Complex Power Systems, EONERC
    % @license GNU General Public License (version 3)
    %
    % PVgenerator
    %
    % This program is free software: you can redistribute it and/or modify
    % it under the terms of the GNU General Public License as published by
    % the Free Software Foundation, either version 3 of the License, or
    % any later version.
    %
    % This program is distributed in the hope that it will be useful,
    % but WITHOUT ANY WARRANTY; without even the implied warranty of
    % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    % GNU General Public License for more details.
    %
    % You should have received a copy of the GNU General Public License
    % along with this program.  If not, see <http://www.gnu.org/licenses/>.
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    function [d_dir, d_dif] = reduction_factor_creation_new(start_time, end_time, cloudiness)
    
    len = end_time - start_time;
    
    if cloudiness == 1
        d_dir = zeros(1,len);
        d_dif = zeros(1,len);
    else
        load('Transition_matrix.mat');
        load('White_covariance_matrix.mat');
    
        F_matrix = reshape(F_matrix_out_tot(cloudiness,:,:),[2 2]);
        cov_w1 = reshape(cov_w1_out_tot(cloudiness,:,:),[2 2]);
        cov_w1 = (cov_w1 + cov_w1.')/2;
        d(1:2,1) = mvnrnd([0;0],cov_w1);
    % F_matrix
    % cov_w1
    
        for x = 2 : len
            d(1:2,x) = F_matrix * d(1:2,x-1) + mvnrnd([0;0],cov_w1)';   
        end
        d_dir = d(1,:);
        d_dif = d(2,:);
    end