Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing one function as input to another function in SIMULNK block

Status
Not open for further replies.

pravs

Mechanical
Apr 12, 2018
34
Hello,
I am trying to optimize a function using fmincon and created objective function and fmincon function in simulink .When I am trying to send objective function as input to fmincon the following error occurs. 'Objective function must be a function handle.' Can someone help me out on how to solve this issue.

fminconn_a6xvmo.jpg
 
Replies continue below

Recommended for you

Yea I have tried searching it on google but the solutions are not clear and none of them address function handling in simulink, if you have a solution or a suggestion(helpful in solving the problem) let me know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor