TUMcps / CORA

Toolbox for Reachability Analysis
GNU General Public License v3.0
108 stars 35 forks source link

polytope method seems to have cyclic definition #20

Closed SergeiSa closed 3 years ago

SergeiSa commented 3 years ago

The following code throws an error for me:

Z = zonotope(zeros(2, 1), randn(2, 5)); V = Z.polytope()

It seems that after going to the line 193 here https://github.com/TUMcps/CORA/blob/master/contSet/%40zonotope/polytope.m, the execution halts at the line 73 here https://github.com/TUMcps/CORA/blob/master/contSet/%40mptPolytope/mptPolytope.m, trying to call the same polytope.m one more time, but now with incorrect parameters. Trying to force it to call this guy https://github.com/TUMcps/CORA/blob/master/contSet/%40mptPolytope/polytope.m does not fix the issue.


error message:

Check for missing argument or incorrect argument data type in call to function 'mptPolytope_polytope'.

Error in mptPolytope (line 82) obj.P=mptPolytope_polytope(varargin{1},varargin{2});

Error in zonotope/polytope (line 193) P = mptPolytope(C,d);

Error in try1 (line 21) V = Z.polytope()

wetzlingerm commented 3 years ago

Can you confirm that the mpt toolbox is installed as specified in the manual in section 1.3?

SergeiSa commented 3 years ago

MPT not being in the path was indeed the problem, my apologies.