Matlab not recognize optimproblem and optimvar in Optimization problem

Hello all. I am writing an optimization problem using Matlab. However, when I run the code, it says undefined function or variable 'optimproblem'and 'optvar'. I thought this function is already set up in Matlab. What do I need to do to for Matlab to recognize these?
Thank you so much for your help!!!

1 件のコメント

Matt J
Matt J 2018 年 7 月 31 日
編集済み: Matt J 2018 年 7 月 31 日
We need to see copy/pastes of code and error messages. We also need to know what version of Matlab you are running.

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

回答 (1 件)

Alan Weiss
Alan Weiss 2018 年 8 月 6 日

0 投票

optimproblem and optimvar were introduced in R2017b. If you have an earlier version of MATLAB, these functions are not available.
Alan Weiss
MATLAB mathematical toolbox documentation

カテゴリ

ヘルプ センター および File ExchangeLinear Programming and Mixed-Integer Linear Programming についてさらに検索

製品

質問済み:

2018 年 7 月 31 日

回答済み:

2018 年 8 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by