필터 지우기
필터 지우기

function type double-> function_handle

조회 수: 1 (최근 30일)
Jungeon Kim
Jungeon Kim 2017년 10월 29일
답변: Star Strider 2017년 10월 29일
I want to use optimizing function 'particleswarm'.
First, I have objective function, that is... function outpu =tttt(x1,x2,x3,x4,x5,x6) . . . outpu=~~ end
I input the 'particleswarm(tttt,6)', but there was error message (the type of fun has to be a 'function_handle'). How can I transform my function to be the type 'function_handle'?
Please help me.

채택된 답변

Star Strider
Star Strider 2017년 10월 29일
See the documentation on Function Basics (link), and Create Function Handle (link) for details.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by