How to write this equation in MATLAB
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1124435/image.png)
3 commentaires
Torsten
le 6 Oct 2022
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.
Réponses (1)
Krishna
le 6 Oct 2022
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.
0 commentaires
Voir également
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!