MATLAB Answers

importance of weights in optimization

3 views (last 30 days)
NN on 22 Apr 2021
This code written below is taken from matlab example ,
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);

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by