- #1
K-Manu
- 7
- 0
Question: How to find solutions using Newton-Raphson method with keeping the sum of solutions?
I am currently working on solving a high-dimensional equation to obtain accurate solutions using the Newton-Raphson method, which I have implemented in Python.
However, my problem requires that the sum of the solutions must equal a constant value, z, which I set. Despite trying several approaches to enforce this constraint, I have not yet achieved the desired result.
For example, I attempted the following methods:
Any mathematical insights or tips would be greatly appreciated.
I am currently working on solving a high-dimensional equation to obtain accurate solutions using the Newton-Raphson method, which I have implemented in Python.
However, my problem requires that the sum of the solutions must equal a constant value, z, which I set. Despite trying several approaches to enforce this constraint, I have not yet achieved the desired result.
For example, I attempted the following methods:
- Ensuring that the sum of the updates sum(dx) → 0
- Normalizing the solution vector by setting x/sum(x)*z
- Extending the matrix to incorporate the constraint (as shown in my Python code, which I discussed here: Stack Overflow link).
Any mathematical insights or tips would be greatly appreciated.