I have a system of linear equations with some constraints. I would appreciate it if someone could help me solving this system of equations in Python.
Asked
Active
Viewed 2,967 times
-1
-
1Please ask a question related to a problem with an actual code. Have you tried something yet? – Right leg Nov 14 '16 at 06:31
-
As it stands you are asking for programming help for free. Do some homework, come up with something half working, or ask a specific question. – gahooa Nov 14 '16 at 06:33
-
You can use a python library such as [PuLP](https://pypi.python.org/pypi/PuLP). – amin Nov 14 '16 at 07:01
1 Answers
0
Should be fairly easy to solve with sympy: http://docs.sympy.org/dev/modules/solvers/solveset.html#sympy.solvers.solveset.linsolve
Add all your equations to a list. Then pass that list to linsolve()
. You'll probably loop through each value of j
to generate those equations.

Navin
- 3,681
- 3
- 28
- 52