How to use a optimization toolbox in MATLAB Cody problem?

2 ビュー (過去 30 日間)
Daigo
Daigo 2022 年 1 月 4 日
コメント済み: Dyuman Joshi 2024 年 1 月 16 日
I'm trying to solve one problem in Cody, but a function 'fmincon' is not recognized by the online compiler. Is there any way to use functions in optimization toolbox in Cody?
  2 件のコメント
Rik
Rik 2022 年 1 月 4 日
That's odd. I thought the Cody engine had access to all toolboxes.
Dyuman Joshi
Dyuman Joshi 2024 年 1 月 16 日
It did, in the initial days. The support for Toolboxes from Cody has been rescinded since a long time.
The Cody help section mentions this as well - "Cody supports MATLAB and not the toolboxes."
Though I do not know when this change was implemented.

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

採用された回答

John D'Errico
John D'Errico 2022 年 1 月 4 日
編集済み: John D'Errico 2022 年 1 月 4 日
The problem is, CODY solvers are assumed to have equal capability to solve a problem. If I don't have the optimization toolbox, then I could not test and run code that uses a function from that toolbox. And that would be unfair to those who lack a given toolbox. For example, suppose I see a way to solve a problem trivially using a tool like intlinprog. My code might now be a simple one liner, that otherwise would take a great deal of effort. That would be unfair to every other solver who lacks that toolbox.
It just makes sense that CODY would have no additional toolboxes, nothing beyond that which is in MATLAB proper.
See this question:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by