Undefined function 'gaoptimset' for input arguments of type 'char'.

I use matlab R2017a and setup global optimization toolbox(trial).
When I run below code, the error was occurred with this description.
Error: Undefined function 'gaoptimset' for input arguments of type 'char'.
How do I fix this error?
options=gaoptimset('Display','iter','Generations',700,'InitialPopulation',ip);*

回答 (1 件)

Alan Weiss
Alan Weiss 2017 年 5 月 25 日

0 投票

Ensure that you have Global Optimization Toolbox installed by running
ver
If you don't have it, then reinstall it. If you have it, then contact technical support for installation issues.
Alan Weiss
MATLAB mathematical toolbox documentation
P.S. These days we are recommending optimoptions for setting ga options. See the R2016a release notes.

1 件のコメント

Hanwool Jang
Hanwool Jang 2017 年 5 月 25 日
移動済み: Angelo Yeo 2023 年 12 月 27 日
Thank you for your comment. Actually I already checked it like below.
Global Optimization Toolbox Version 3.4.2 (R2017a)
I may need to reinstall all matlab....
Thanks again

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

カテゴリ

ヘルプ センター および File Exchange설치 및 라이선스 부여 소개 についてさらに検索

質問済み:

2017 年 5 月 25 日

移動済み:

2023 年 12 月 27 日

Community Treasure Hunt

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

Start Hunting!