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 件のコメント

Rik
Rik 2021 年 9 月 16 日
What function are you calling? Can you write a short piece of code that will reproduce this error?
Neilabh Banzal
Neilabh Banzal 2021 年 9 月 16 日
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'.
Neilabh Banzal
Neilabh Banzal 2021 年 9 月 16 日
So, issystem is a part of the Robust Control Toolbox, which is not installed on my system. However, earlier, fmincon never raised this error.
Rik
Rik 2021 年 9 月 16 日
Without code to reproduce this error, it is difficult to suggest a solution.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction 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