0% found this document useful (0 votes)
8 views5 pages

MR Izu1

Uploaded by

Christian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views5 pages

MR Izu1

Uploaded by

Christian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

From the graph, we can draw several conclusions about the performance of the

different techniques:

1. Throughput Variation with SNR: All three techniques exhibit an increase in


throughput as the signal-to-noise ratio (SNR) increases. This is expected, as higher
SNR generally leads to better transmission quality and higher data rates.

2. Differences in Throughput Behavior: Each technique has a distinct pattern of


throughput variation with SNR. The EEOF SM Developed technique shows a
linear increase in throughput, the Underlay Technique exhibits a sinusoidal pattern
with oscillations, and the Overlay Technique demonstrates a quadratic increase in
throughput.
3. Performance Comparison: The Overlay Technique achieves the highest
throughput at higher SNR levels, followed by the EEOF SM Developed technique
and the Underlay Technique. However, the specific performance ranking may vary
depending on the SNR range and network conditions.

4. Stability and Consistency: The EEOF SM Developed technique shows a


relatively stable and consistent increase in throughput with SNR. In contrast, the
Underlay Technique's throughput fluctuates due to its sinusoidal pattern, while the
Overlay Technique's throughput grows rapidly but with a less stable trajectory.

Overall, the graph provides insights into how different techniques perform in terms
of throughput under varying SNR conditions, highlighting their strengths and
weaknesses.

Matlabe code
% Step 1: Problem Formulation
% Define the optimization problem and objective function
alpha = 0.6; % Weight for energy efficiency
beta = 0.4; % Weight for throughput

% Simulated objective function for energy efficiency and throughput


optimization
objective_function = @(x) -alpha * x(1) + beta * x(2); % Placeholder objective
function

% Simulate SNR data


SNR_dB = 0:5:50; % SNR values from 0 to 50 dB with a step of 5 dB

% Simulate throughput data for EEOF SM Developed technique


Throughput_EEOF_SM_Developed = zeros(size(SNR_dB));
for i = 1:numel(SNR_dB)
% Generate throughput with random noise and a linearly increasing trend
Throughput_EEOF_SM_Developed(i) = 30 + 0.5 * SNR_dB(i) + randn * 2;
end

% Simulate throughput data for Underlay Technique


Throughput_Underlay_Technique = zeros(size(SNR_dB));
for i = 1:numel(SNR_dB)
% Generate throughput with random noise and a sinusoidal pattern
Throughput_Underlay_Technique(i) = 25 + 5 * sin(2*pi*i/numel(SNR_dB)) +
randn * 3;
end

% Simulate throughput data for Overlay Technique


Throughput_Overlay_Technique = zeros(size(SNR_dB));
for i = 1:numel(SNR_dB)
% Generate throughput with random noise and a quadratic trend
Throughput_Overlay_Technique(i) = 20 + 0.1 * SNR_dB(i)^2 + randn * 1;
end

% Simulate energy consumption data


num_time_steps = 100; % Number of time steps
simulated_energy_consumption = 50 + 10 * sin(2 * pi * (1:num_time_steps) /
24);

% Step 2: Parameter Settings


% Simulated parameters for DU-CP
parameters_DU_CP.PopulationSize = 100;
parameters_DU_CP.MutationScale = 0.5;
parameters_DU_CP.CrossoverProbability = 0.9;
parameters_DU_CP.TerminationCriteria = 1000;

% Simulated parameters for DU-DCP


parameters_DU_DCP.HarmonyMemorySize = 20;
parameters_DU_DCP.PitchAdjustmentRate = 0.1;
parameters_DU_DCP.Bandwidth = [1.6, 2]; % GHz
parameters_DU_DCP.TerminationCriteria = 500;

% Step 3: Initialization
% Initialize optimization algorithm (e.g., Differential Evolution) for both
schemes
initial_solution = [rand(), rand()]; % Initial solution for optimization

% Step 4: Optimization
% Optimize objective function for both schemes
[solution_DU_CP, ~] = optimize_objective_DU_CP(objective_function,
initial_solution, parameters_DU_CP);
[solution_DU_DCP, ~] = optimize_objective_DU_DCP(objective_function,
initial_solution, parameters_DU_DCP);

% Step 7: Performance Evaluation


% Simulated performance metrics for DU-CP
performance_metrics_DU_CP.EnergyEfficiency = alpha * solution_DU_CP(1);
performance_metrics_DU_CP.NetworkThroughput = beta * solution_DU_CP(2);

% Simulated performance metrics for DU-DCP


performance_metrics_DU_DCP.EnergyEfficiency = alpha * solution_DU_DCP(1);
performance_metrics_DU_DCP.NetworkThroughput = beta * solution_DU_DCP(2);

% Step 8: Comparison and Analysis


% Compare performance metrics between DU-CP and DU-DCP
fprintf('Performance Comparison:\n');
fprintf('----------------------\n');
fprintf('DU-CP:\n');
fprintf('Energy Efficiency: %.2f\n',
performance_metrics_DU_CP.EnergyEfficiency);
fprintf('Network Throughput: %.2f\n',
performance_metrics_DU_CP.NetworkThroughput);

fprintf('\nDU-DCP:\n');
fprintf('Energy Efficiency: %.2f\n',
performance_metrics_DU_DCP.EnergyEfficiency);
fprintf('Network Throughput: %.2f\n',
performance_metrics_DU_DCP.NetworkThroughput);

% Simulate network performance metrics (e.g., throughput)


simulated_network_performance = 50 + 20 * sin(2 * pi * (1:num_time_steps) /
24);

% Calculate simulated energy efficiency


simulated_energy_efficiency = mean(simulated_network_performance) /
mean(simulated_energy_consumption);

% Calculate energy efficiency based on optimized throughput


optimized_throughput = [performance_metrics_DU_CP.NetworkThroughput,
performance_metrics_DU_DCP.NetworkThroughput];

% Calculate energy efficiency comparison


optimized_energy_efficiency = mean(optimized_throughput) /
mean(simulated_energy_consumption);

% Display energy efficiency comparison


fprintf('\nEnergy Efficiency Comparison:\n');
fprintf('Simulated Energy Efficiency: %.2f\n', simulated_energy_efficiency);
fprintf('Optimized Energy Efficiency: %.2f\n', optimized_energy_efficiency);

% Attach to Step 10: Plotting Throughput Comparison


figure;
plot(SNR_dB, Throughput_EEOF_SM_Developed, '-o', 'DisplayName', 'EEOF SM
Developed', 'LineWidth', 2);
hold on;
plot(SNR_dB, Throughput_Underlay_Technique, '-o', 'DisplayName', 'Underlay
Technique', 'LineWidth', 2);
plot(SNR_dB, Throughput_Overlay_Technique, '-o', 'DisplayName', 'Overlay
Technique', 'LineWidth', 2);
xlabel('SNR (dB)');
ylabel('Throughput (Mbps)');
title('Throughput Comparison');
legend('show');
grid on;

You might also like