Overwrite the saved is a basic quality requirement of WSN. Choose an optimal cluster head to meet the full coverage of the monitored area for a long time. Using the overlay method to select the cluster head, rather than based on energy method, you can increase the effective time.
File list:
ClusterCoverage
..............\CLUSTER_SCEN_200_NODES
..............\......................\proba_nodes_200_trial_1.mat
..............\app_cost_min_weight.m
..............\app_cost_weighted_sum.m
..............\build_coverage.m
..............\CH_election_with_threshold.m
..............\coverage_cost.m
..............\create_clusters_scenario.m
..............\find_CHs_route_costs.m
..............\find_route_costs.m
..............\find_shortest_path.m
..............\join_clusters.m
..............\load_parameters_st.m
..............\readme.txt
..............\run_cpcp_script.m
..............\SCRIPT.m
..............\script_create_cluster_coverage.m
..............\select_nodes.m
..............\select_nodes_in_cluster.m
..............\select_nodes_lowest_cost.m
..............\update_energy_CH_routing.m
..............\update_energy_direct_tx.m
..............\update_energy_over_nodes.m