how can i write this equation?

조회 수: 1 (최근 30일)
sharifah shuthairah syed abdullah
답변: Michaelscheinfeild 2018년 5월 13일
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
sharifah shuthairah syed abdullah
i and k is a facilities..facilities i and facilities k... j and q is a location...location j and location q ... f (i,k) mean flow between facility i and k.. d(j, q) mean distance between facility j to q
Jan
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
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

카테고리

Help CenterFile 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!

Translated by