how can i write this equation?
1 次查看(过去 30 天)
显示 更早的评论
how can i write this equation in matlab?
min z = sum sum sum sum (f(i,k))*(d(j,q))*(x(i,j))*(x(k,q))
3 个评论
Jan
2018-5-13
The physical meaning of the variables does not matter, but if they are e.g. vectors, functions, of the loop counters. The initial "min z" could mean a variety of things also.
Currently all we see is a notation, which is not valid Matlab code and not an exact mathematical notation also. Then translating this into valid Matlab code must be based on guessing. Please edit your question and post the information in a unique and unequivocal way.
回答(1 个)
Michaelscheinfeild
2018-5-13
z = sum (sum (sum (sum (f(i,k))*(d(j,q))*(x(i,j))*(x(k,q)))))
i suppose there is loop around so use for i=1:N code end
ans so on
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!