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

Error when summing empty multidimensional intervals #6

Closed
MaxGaukler opened this issue Sep 20, 2019 · 1 comment
Closed

Error when summing empty multidimensional intervals #6

MaxGaukler opened this issue Sep 20, 2019 · 1 comment

Comments

@MaxGaukler
Copy link

MaxGaukler commented Sep 20, 2019

The handling of empty intervals does not work for nonscalar values.

>> interval([1 2], [3 4]) + interval([4 3], [2 1])
Left limit larger than right limit
Error using  + 
Matrix dimensions must agree.

Error in  +  (line 56)
    res.inf = res.inf + summand.inf;

(I guess that the interval constructor should error if left limit > right limit.)

@wetzlingerm
Copy link
Collaborator

The initialization of an empty interval (in case the lower bounds are larger than the upper bounds) is utilized in some parts of the code. The proposal to throw an error will be implemented in the next release version, as this change requires major adjustments.

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