fy and fz from parameter study and improvement of gearbox whine noise in electric vehicle in matlab

To find optimal values of fy and fz and minimize gearbox whine noise in an electric vehicle, the following steps can be followed in MATLAB:

  1. Define the input parameters and their ranges for the parameter study:
main.m
fy_range = linspace(0.1, 1, 10);
fz_range = linspace(0.1, 1, 10);
66 chars
3 lines
  1. Define the objective function that represents the gearbox whine noise:
main.m
function noise = gearbox_noise(fy, fz)
  % code to calculate gearbox noise for given fy and fz values
end
106 chars
4 lines
  1. Use the parameter study to evaluate the objective function for each combination of fy and fz values:
main.m
for i = 1:length(fy_range)
  for j = 1:length(fz_range)
    noise(i,j) = gearbox_noise(fy_range(i), fz_range(j));
  end
end
124 chars
6 lines
  1. Visualize the results of the parameter study:
main.m
mesh(fy_range, fz_range, noise);
xlabel('fy');
ylabel('fz');
zlabel('Gearbox noise');
86 chars
5 lines
  1. Use optimization techniques, such as fminsearch or ga, to find the optimal values that minimize the gearbox whine noise:
main.m
options = optimset('Display', 'iter');  % set the display option for optimization progress
f_opt = fminsearch(@(params)gearbox_noise(params(1), params(2)), [0.5, 0.5], options);
178 chars
3 lines
  1. Evaluate the optimized values of fy and fz to confirm the reduction in gearbox whine noise.

gistlibby LogSnag