Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reachInner algorithm example: problem with the mptPolytope contructor #36

Closed
dfcaporale opened this issue Nov 9, 2022 · 2 comments
Closed

Comments

@dfcaporale
Copy link

dfcaporale commented Nov 9, 2022

Hi,

My name is Daniel, and I am taking my first steps heading for using the reachInner algorithm from your package. Trying to run the example from Sec. 4.1.2 from the CORA Manual, I got stuck with an issue. After debugging the code a little bit, I noticed that the problem is in the call to the mptPolytope constructor (in this line).

Here is the stack trace:

>> C = [1 0 -1 0 1; 0 1 0 -1 1]';
>> d = [3; 2; 3; 2; 1];
>> poly = mptPolytope(C,d);
Undefined function 'polytope' for input arguments of type 'double'.

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

Am I doing something wrong?

Thanks in advance, and congratulations on your code!

@wetzlingerm
Copy link
Collaborator

Hi Daniel,
Thanks for your kind words!

Did you install the mpt toolbox as explained in Section 1.3 of the CORA manual?

@dfcaporale
Copy link
Author

Hi @wetzlingerm,

You are right. I'd previously installed the required packages manually and added the paths to MATLAB, but something else needed to be set appropriately.

Now it's working perfectly. This time I did it with the script install_mpt3.m and tested with test_requiredToolboxes, and everything is fine.

Thank you so much for your quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants