Skip to content

NAN matrices #926

Jun 18, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

First issues is that you are doing

X <= 1e-6

which is equivalent to

X <= 1e-6*ones(n)

What you intended is

X <= 1e-6*eye(n)

Another issues is that you haven't checked symmetry of the stuff you have created. You have bugs causing some expressions to be non-symmetric, leading to element-wise constraints instead of semidefinite cones

>> F
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|    ID|                     Constraint|   Coefficient range|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|    #1|    Element-wise inequality 4x1|          1e-06 to 1|
|    #2|          Matrix inequality 3x3|        1e-06 to 100|
|    #3|          Matrix inequality 3x3|        1…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nargessC
Comment options

Answer selected by johanlofberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants