%select type of model among 'single_phase' 'three_phase_sequence' 'three_phase_unbalance'
type_of_model='single_phase';
[GridData]=generate_GridData(type_of_model);%in this function the static model is generated
[PowerData]=generate_PowerData(GridData);%in this function the power flow is run in order to obtain the reference values to test the state estimator
name_of_model='CIGRE_MV';
[GridData]=generate_GridData(type_of_model,name_of_model);%in this function the static model is generated
[PowerData]=generate_PowerData(GridData,name_of_model);%in this function the power flow is run in order to obtain the reference values to test the state estimator
[Test_SetUp,Combination_devices,Accuracy]=generate_DSSEConfData(GridData);%here the test configuration data are set: measurement devices location and accuracy
GridData.rm_column=0;%in this case the phase angle at 1st bus is also considered as state
[W,GridData,R]=Weight_m(GridData,PowerData,Combination_devices,Accuracy);%weight and covariance matrix of the state estimator