This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Technology & Calculator Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Math and Science => Technology & Calculator Open Topic
Author Message
spelare


Newbie


Joined: 13 Mar 2008
Posts: 1

Posted: 13 Mar 2008 12:07:55 pm    Post subject:

Hi!

I am new to use my ti-84 calc. I am wondering if there is a program that can solve linear equations. For example this:

max z= x₁+3x₂
2x₁ + x₂ ≤ 14
x₁ + 2x₂ ≤ 10
x₁ ≥ 2
x₂ ≥ 0

I have tried using inequalz program but I am not able to type that on program
"z= x₁+3x₂"


Last edited by Guest on 16 Mar 2008 09:34:32 am; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 13 Mar 2008 12:35:43 pm    Post subject:

I don't know of a program for solving such systems specifically. But programs for solving systems of linear equations do exist, and in fact you can use the rref( command to solve them. From there, it's not too hard to solve the system: solve every pair of equations, eliminate the intersection points that don't satisfy the conditions, evaluate z on those that do, and find the maximum.
Back to top
thornahawk
μολών λαβέ


Active Member


Joined: 27 Mar 2005
Posts: 569

Posted: 16 Mar 2008 09:33:35 am    Post subject:

Well, some people have written LP programs for the TI 83+, but unless you're familiar with putting LP problems in "restricted normal form" (i.e., slack and artificial variables and everything), they're not too intuitive to use.

@DarkerLine: In a sense, you could use something like rref( to help solve an LP problem, but there are certain complicating matters one should take into account. I'm no specialist so I might be oversimplifying the matter.

@spelare: In any case, if you're really interested in doing LP problems on your calc, you might want to try looking for the "revised simplex algorithm" as done by Bartels and Golub. The implementation is thorny, but the advantage of it is that it makes efficient use of the "tableau" information.

thornahawk


Last edited by Guest on 16 Mar 2008 12:09:10 pm; edited 1 time in total
Back to top
CoBB


Active Member


Joined: 30 Jun 2003
Posts: 720

Posted: 16 Mar 2008 11:06:06 am    Post subject:

thornahawk wrote:
@DarkerLine: In a sense, you could use something like rref( to help solve an LP problem, but there are certain complicating matters one should take into account. I'm no specialist so I might be oversimplifying the matter.

Mostly the sad fact that this approach scales badly, especially with the number of variables.
Back to top
thornahawk
μολών λαβέ


Active Member


Joined: 27 Mar 2005
Posts: 569

Posted: 16 Mar 2008 11:59:20 am    Post subject:

Which is why the "interior point" approach got much-deserved attention for solving large-scale LP problems. I however think that "revised simplex" would be good enough for most problems that would fit into a normal TI calculator. The need to take care of a good number of subtleties, however, makes me think that the resulting program would be quite large.

To further clarify what I was telling DarkerLine: good implementations of simplex-based LP solvers use LU decomposition: they factor a matrix that is derived from the "tableau" into a lower-triangular and upper-triangular matrix (not much different from what you are familiar with as Gaussian elimination), and then at each step of searching for the optimum point, the factorizations are updated accordingly. This brings down supposedly O(n3) work per iteration down to O(n2) at the expense of some degradation in accuracy; hence the need to do a fresh factorization every so often instead of an update. All these sophistications make for long programs. (An LU decomposition routine I wrote for the TI 83+ is ~ 500 bytes on my calculator. Building from that a routine for solving LP problems would maybe triple or quadruple the size.)

If you're still unfazed, I would recommend that you look into the Journal of the ACM article by Bartels and Golub on their version of the simplex algorithm. Translating their ALGOL code to TI 83+ would be quite the project. ;)

thornahawk
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 16 Mar 2008 03:04:18 pm    Post subject:

CoBB wrote:
thornahawk wrote:
@DarkerLine: In a sense, you could use something like rref( to help solve an LP problem, but there are certain complicating matters one should take into account. I'm no specialist so I might be oversimplifying the matter.

Mostly the sad fact that this approach scales badly, especially with the number of variables.
[post="121532"]<{POST_SNAPBACK}>[/post]
High school algebra courses limit LP problems to two variables; and there usually aren't a lot of equations either. I realize that I'm not offering the optimal solution for the general LP problem. However, I'm sure that spelare would be more interested in the simpler method, rather than the more complicated and more general one.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement