YALMIP polytope: Undefined function 'isinf' for input arguments of type 'sdpvar'.
2 次查看(过去 30 天)
显示 更早的评论
I was running the example from https://yalmip.github.io/command/polytope/
which is
v = randn(2,10);
x = sdpvar(2,1);
P = polytope(v,x)
and I got the error
Undefined function 'isinf' for input arguments of type 'sdpvar'.
Error in polytope (line 24)
idx = isinf(arg2);
I think it is because there is a (standard) polytope function to create polytopes Ax <= b, but I want to use the polytope function from YALMIP which creates polytopes from a set of vertices. How can I make my script choose the "right" polytope function?
回答(1 个)
Sachin
2023-3-23
Hi
I understand that you are getting the error ‘undefined function ‘isinf’ for input arguments of type ‘sdpvar’’.
A possible workaround would be to reinstall YALMIP.
Refer to the following page to install YALMIP :
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!