I am trying to solve a set of equations like follows with python:
X2 - C1*X3 = X1
X3 = k*(X4-C2)*sqrt(X2(1-X2))
AX4 = C3*b
where X2,X3 and X4 are unknown N-dimension(N is constant) vectors.C1,k,C2 are known constant scalars.b and X1 is known constant N-D vector.A is known N * N matrix.vector multiply vector means simply ' * ' in Python. sqrting a vector means every element in vector be square rooted. vector minus a scalar means every element minus it.
I tried fsolve in scipy but it doesn't accept 2-D inputs.what method can i use to solve this problem?
Don't leave all of those variables as degrees of freedom. All but one of them is a simple function. Choosing
x2as your sole degree of freedom leads to a simpler optimisation problem: