[Bug] Negative eigenvalue
See original GitHub issuein cma.py CMA.tell() I somehow get to this point:
self._B, self._D = None, None
self._C =
[[ 8.14737017e-04 2.68770961e-02 -6.44404672e-03]
[ 2.68770961e-02 8.40956376e-01 -4.00553778e-01]
[ -6.44404672e-03 -4.00553778e-01 2.18242242e+00]]
D2 =
[ -6.44813495e-05 7.31257026e-01 2.29300099e+00]
D =
[ nan 0.85513568 1.51426582]
This leads to
self._C =
[[ nan nan nan]
[ nan nan nan]
[ nan nan nan]]
at the end of CMA.tell()
Then in CMA._sample_solution()
D2, B = np.linalg.eigh(self._C)
crashes for obvious reasons
LinAlgError: Eigenvalues did not converge
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top Results From Across the Web
Warning Messages Related to Negative Eigenvalues in Abaqus
Physically, negative eigenvalue messages are often associated with a loss of stiffness or solution uniqueness in the form of either material ...
Read more >how to solve this negative eigen value error? - Eng-Tips
Negative eigenvalues indicate that some instabilities occur in the analysis. In some cases they are related to buckling but here the reason must ......
Read more >Dealing with negative eigenvalues due to floating point errors
The error occurs during the eigenvalue decomposition. Something about the structure of my data results in negatives for the eigen values.
Read more >Can anyone help me with "negative eigen value" error in ...
What is the step you are using? The negative eigenvalue in context of buckling basically means the structure may buckle if the load...
Read more >When will a matrix have negative eigenvalues? And ... - Quora
So, If an eigen vector is in the negative direction relative to the origin of the vector space, then its eigen value will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thank you @c-bata I’m testing #34 since friday and I’ve not found error again. Will tell you if problem appears again.
Also, I think I’ll contribute to this project on my personal time.
This error happens once in a while. Hard to tell when. I’d need to work on a way to make it reproducible. I’ve just looked at https://github.com/CyberAgent/cmaes/pull/34 and it seems this is what I actually get. I’ll try this PR to see if it fixes it.
I’m using
0.5.0
Also, I’ve seen some indications in the code like
# (p.28)
I think it refers to some book. Which one?