importance of weights in optimization
1 view (last 30 days)
This code written below is taken from matlab example , https://ww2.mathworks.cn/matlabcentral/fileexchange/73139-microgrid-energy-management-system-ems-using-optimization?s_tid=prof_contriblnk
Can someone please help me to understand the importance of weights in optimisation and and why final weight is multiplied with Ebatt in the objective function ?
% Minimize cost of electricity from the grid
prob.ObjectiveSense = 'minimize';
prob.Objective = dt*Cost'*PgridV - FinalWeight*EbattV(N);