-
Notifications
You must be signed in to change notification settings - Fork 9
/
start.m
38 lines (26 loc) · 1.29 KB
/
start.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
clc
clearvars
%------------------------------Load Data-----------------------------------
addpath(genpath('data'))
load('dc_ieee118_177_9.mat')
%--------------------------------------------------------------------------
%-----------------------Post-processing Options----------------------------
user.radius = 1;
user.error = 1;
%--------------------------------------------------------------------------
%-----------------------Design of Iteration Scheme-------------------------
user.stop = 10^-10;
user.maxi = 2000;
%--------------------------------------------------------------------------
%-----------------------Convergence Parameters-----------------------------
user.prob = 0.6;
user.alph = 0.5;
%--------------------------------------------------------------------------
%-----------------------Virtual Factor Nodes-------------------------------
user.vari = 10^60;
%--------------------------------------------------------------------------
%--------------------------Main Functions----------------------------------
[sys, bp, wls] = a1_preprocessing(dataSE, user);
[bp] = b1_belief_propagation(bp, user);
[wls, bp] = c1_postprocessing(wls, bp, user);
%--------------------------------------------------------------------------