Solving system of linear equations when x_i are in specified set
Subject: Solving system of linear equations when x_i are in specified set
From: Robert Dodier
Date: Sat, 17 Nov 2012 18:46:06 +0000 (UTC)
On 2012-11-16, Kakadu <kakadu.hafanana at gmail.com> wrote:
> I'm new in Maxima and today I've tried to study it a little bit. I need to
> solve 12 linear equations with 20 variable values (x1,.....x20) to find.
> All x_i are different, natural and 1<= x_i <=20 for any i. (So the set
> {x1,....x20} should be equal to {1,...20}).
If you mean that x_i are restricted to integer values, then this is an
integer programming problem, and unfortunately Maxima doesn't have any
way to solve such a problem, if I am not mistaken. I think you will need
to solve it with some package such as GLPK or lp_solve.
Sorry I can't be more helpful,
Robert Dodier