Yalmip error : undefined function sdpvar

조회 수: 16 (최근 30일)
Sana Ben Hmouda
Sana Ben Hmouda 2016년 8월 11일
댓글: chen jiyuan 2021년 11월 4일
Hello I have installed yalmip. Then i checked that it works through writing yalmip in the command window , and it gives : yalmip yalmip Returns various information about yalmip
yalmip can be used to check version numbers and
find the SDPVAR and SET objects available in workspace
EXAMPLES
V = yalmip('version') % Returns version
yalmip('nvars') % Returns total number of declared variables
yalmip('info') % Display basic info.
yalmip('solver','tag') % Sets the solver 'solvertag' (see sdpsettings) as default solver
If you want information on how to use yalmip, you are advised to check out
http://users.isy.liu.se/johanl/yalmip/
See also YALMIPTEST, YALMIPDEMO
now when i try to define an sdpvar it gives an error message: undefined function sdpvar. how can i solve this please ? Thanks in advance

채택된 답변

Johan Löfberg
Johan Löfberg 2016년 8월 11일
You must have failed with the installation such as unzipping and/or setting the path. Show us your path, and a "dir" performed in the yalmip directory
BTW, a much better place to post yalmip questions is https://groups.google.com/forum/?fromgroups#!forum/yalmip
  댓글 수: 1
chen jiyuan
chen jiyuan 2021년 11월 4일
The commend run like
constraint_ml = set(cone(zz,y2));
, and an error comes. Could please help me to solve this problem.
"SET has been considered obsolete for many years, and the time has come...
Update your code. https://yalmip.github.io/tutorial/basics/
wrong use constraint/set
Obsolete command"

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

추가 답변 (2개)

Sana Ben Hmouda
Sana Ben Hmouda 2016년 8월 11일
편집: Sana Ben Hmouda 2016년 8월 11일
Hello, Thanks a lot for your prompt answer. I may have resolved this problem by one of these solutions that i have tried all: - uninstall all previous yalmip versions existing in my matlab path / or in my laptop - download the newest version of yalmip - add the required folders to matlab path in the same order mentioned in the tutorial so that i get sure that i added them all. - save the already added folders - run " clear classes " before trying yalmiptest
Then everything worked fine Thanks again for your help and i do appology for mentioning this late.
Sana

Waseem Abbasi
Waseem Abbasi 2019년 6월 24일
편집: Waseem Abbasi 2019년 6월 24일
dear i face the problem that when i used set command, the following error come:
SET has been considered obsolete for many years, and the time has come...
Update your code. https://yalmip.github.io/tutorial/basics/
Error using constraint/set (line 6)
Obsolete command
Error in chap5_1 (line 14)
L=set(FAI<0);
The last coomand i used after my sdpvar command.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by