필터 지우기
필터 지우기

How to write this equation in MATLAB

조회 수: 5 (최근 30일)
muhammad imad
muhammad imad 2022년 9월 14일
댓글: Torsten 2022년 10월 6일
Hello. I am working on a mixed-integer non-linear programming (MINLP) problem where the below equation is a part of number of equation. I am confused how to implement it in Matlab. I would be thankful if someone help me out.
  댓글 수: 3
muhammad imad
muhammad imad 2022년 9월 14일
In the attached picture these are the equations I am trying to use further. I already have the values for each varibles mentioned in these equations just stuck in writing the first equation. your help would be appreciated.
Torsten
Torsten 2022년 10월 6일
We don't know how the variables are interrelated. The only thing we can tell is that you will have to use "ga" to solve your problem.

댓글을 달려면 로그인하십시오.

답변 (1개)

Krishna
Krishna 2022년 10월 6일
Hi Imad,
F = symsum(f,k,a,b)
returns the sum of the series f with respect to the summation index k from the lower bound a to the upper bound b. You can use this to find the summation of variables in the given equation. Yopu can use the below link for more information.
Since one of the variables require multiple summations, you can use nested sum or symsum to get the desired output. Refer this link for more information: Multiple Summation in matlab - MATLAB Answers - MATLAB Central (mathworks.com)
You can use the min function to then compute the required answer.
Hope this solves your issue.

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by