Sir how to write objective function for this in particle swarm optimization algorthim

조회 수: 1 (최근 30일)
How to write the code for this objective function

채택된 답변

Alan Weiss
Alan Weiss 2020년 6월 1일
I suppose that you know how to write code to calculate and . I suppose that you know how to write code to calculate the sum multiplied by . To maximize, you minimize the negative of that sum, as explained in Maximizing an Objective.
If you need more help, feel free to ask.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 3
Thangavinothini R
Thangavinothini R 2020년 6월 3일
how to write sumation objective function in matlab ...plz provide the code sir
Alan Weiss
Alan Weiss 2020년 6월 3일
If you have a vector v = [v(1),...,v(n)] then the sum is y = sum(v). Or is there something else that you meant?
Alan Weiss
MATLAB mathematical toolbox documentation

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by