Unexpected Error in fmincon - Unrecognized function or variable 'issystem'

I'm getting the following error while running fconmin -
Unrecognized function or variable 'issystem'.
Error in optim.problemdef.OptimizationProblem/solve
Could someone help me figure out why this error is appearing?

댓글 수: 4

What function are you calling? Can you write a short piece of code that will reproduce this error?
I'm trying, but haven't been able to reproduce it on a simpler example. However, on removing 'OutputSize' argument from fcn2optimexpr, I get the following error -
Error using fcn2optimexpr (line 103)
Function evaluation failed while attempting to determine output size. See error cause below. The function might
contain an error, or might not be well-defined at the automatically-chosen point. To specify output size without
function evaluation, use 'OutputSize'.
Error in main (line 65)
PTmincons = fcn2optimexpr(@(Q0, P0, L) min(eig(pn(Q0, P0, L, Const))), Q0, P0, L) >= 0;
Caused by:
Error using feval
Undefined function 'issystem' for input arguments of type 'double'.
So, issystem is a part of the Robust Control Toolbox, which is not installed on my system. However, earlier, fmincon never raised this error.
Without code to reproduce this error, it is difficult to suggest a solution.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2021년 9월 16일

댓글:

Rik
2021년 9월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by