Solution to System with Unknown Variables n > 4

  • Context: Graduate 
  • Thread starter Thread starter uwowizard
  • Start date Start date
  • Tags Tags
    System
Click For Summary

Discussion Overview

The discussion revolves around finding a solution to a system of equations with unknown variables, specifically when the number of variables exceeds four (n > 4). The system includes linear equations and constraints on the variables, focusing on the challenge of selecting a solution that satisfies specific inequality conditions.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant seeks a general-case method for solving a system of equations involving known coefficients and unknown variables constrained between 0 and 1.
  • Another participant reformulates the system into matrix notation, suggesting the use of Gaussian elimination as a potential method for solving it.
  • A participant notes that the system has an infinite number of solutions and emphasizes the challenge of selecting one that meets the inequality constraints.
  • Further discussion highlights that many numerical techniques are not applicable due to the nature of the system having more unknowns than equations, leading to a degree of freedom in choosing variable values.
  • One participant expresses uncertainty about how to ensure that the derived values for the variables remain within the specified bounds after selection.
  • Brute force methods are mentioned as a possible approach for approximating a solution, though no specific techniques are agreed upon.

Areas of Agreement / Disagreement

Participants generally agree that the system has infinitely many solutions and that the main challenge lies in selecting a solution that satisfies the inequality constraints. However, there is no consensus on a specific method to achieve this.

Contextual Notes

The discussion acknowledges limitations related to the number of equations versus unknowns and the implications for solution selection, but does not resolve these issues.

uwowizard
Messages
14
Reaction score
0
I'm looking for a general-case method to find at
least one solution to a system such as

a_0 = a_1*x_1 + ... + a_n*x_n
b_0 = b_1*x_1 + ... + b_n*x_n
x_1 + ... + x_n = 1
0<= x_1, ... , x_n <= 1

where a_i, b_i are known real numbers, x_i are unknown and n > 4

Thank you in advance.
 
Physics news on Phys.org
If I understand, you can write your system this way:
[tex]\left(\begin{array}{cccc}<br /> a_1&a_2&\cdots&a_n\\<br /> b_1&b_2&\cdots&b_n\\<br /> 1&1&\cdots&1\\<br /> 0&0&\cdots&0\\<br /> \vdots&\vdots&\ddots&\vdots\\<br /> 0&0&\cdots&0<br /> \end{array}\right)\cdot<br /> \left[<br /> \begin{array}{c}x_1\\x_2\\\vdots\\x_n\end{array}<br /> \right]=\left[<br /> \begin{array}{c}<br /> a_0\\b_0\\1\\0\\\vdots\\0<br /> \end{array}\right][/tex]

If you put:

[itex]\mathbf{x}=\left[<br /> \begin{array}{c}x_1\\x_2\\\vdots\\x_n\end{array}<br /> \right][/itex]

[itex]\mathbf{b}=\left[<br /> \begin{array}{c}<br /> a_0\\b_0\\1\\0\\\vdots\\0<br /> \end{array}\right][/itex]

[itex]A=\left(\begin{array}{cccc}<br /> a_1&a_2&\cdots&a_n\\<br /> b_1&b_2&\cdots&b_n\\<br /> 1&1&\cdots&1\\<br /> 0&0&\cdots&0\\<br /> \vdots&\vdots&\ddots&\vdots\\<br /> 0&0&\cdots&0<br /> \end{array}\right)[/itex]

it can be written for short as [tex]A\cdot\mathbf{x}=\mathbf{b}[/tex]

You can use http://en.wikipedia.org/wiki/Gaussian_elimination" (I think :D )

Or probably I have not understood the problem :P
 
Last edited by a moderator:
Thanks for the reply. However, the system

a_0 = a_1*x_1 + ... + a_n*x_n
b_0 = b_1*x_1 + ... + b_n*x_n
x_1 + ... + x_n = 1

will have an infinite amount of solutions, and the problem is how to select at least one that satisfy the inequality.

0<= x_1, ... , x_n <= 1
 
Sorry, I didn't focus on that condition :D
 
uwowizard said:
have an infinite amount of solutions, and the problem is how to select at least one that satisfy the inequality.

0<= x_1, ... , x_n <= 1

That's the big problem here. A lot of the numerical techniques that solve systems of equations either have a square matrix (Gauss-Seidel) or have more equations than unknowns (least-squares).

Whenever you have the case of more unknowns than equations, you have a certain degree of freedom. In this case, you're free to choose whatever values you want for most of the variables (choose simple values between 0 and 1). The real question though is that when you solve for the remaining variables, will you get something between 0 and 1? I would try this, but I can't think of any other method, unless you're willing to do brute force and obtain an approximation answer.
 

Similar threads

  • · Replies 40 ·
2
Replies
40
Views
5K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 28 ·
Replies
28
Views
3K