how to gave the input for the following functions?
조회 수: 1 (최근 30일)
이전 댓글 표시
function [x, fval, exitflag, output] = pso(objfunc, nvars, options)
In that function specified the objfunc means "real-valued function of a single, real-valued vector argument"
please call the function with example would been easy to understand
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 7월 2일
Example:
@(x) (x(1)-20).^2 + cos(x(2))
댓글 수: 3
Walter Roberson
2015년 7월 2일
You have not indicated what is to be optimized. What parameter is being looked for?
참고 항목
카테고리
Help Center 및 File Exchange에서 Particle Swarm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!