Conversation
|
Can you explain why the imaginary part must be truncated in optimization tools? |
In order to differentiate functionals and get the corresponding gradients one needs an inner product. It is implied in many text books, though it is rarely pronounced explicitly. To put it bluntly, optimization theory is well defined only for real Hilbert spaces (orbitals can still have complex values, there is no contradiction here) with real functionals, of course. |
|
Thanks, I understand the idea now. We should try it in a real case (I think the present H2_magnetic_properties_LDA test is not doing any KAIN optimization) |
Changed the complex L2 inner product to the real L2 inner product.
It makes it consistent with optimization problems appearing in quantum chemistry.
We need to check:
H2_magnetic_properties_LDA (Failed)
We should operate with different inner products in energy expressions (
mrcpp::dot) and in optimization tools (real part ofmrcpp::dot). They are conceptually different. For example, the gradient of Lagrangian is an optimization tool, and so it uses the latter one (with the real part).