# TI-89 for IP (Integer Program)

Can I use TI-89 to get the answer of Integer Program, the example is below. I want to get the max value of Z with the 3 constrains, and all variables >= 0

I know how to solve it, if the question is asking Linear program (http://www.experts-exchange.com/Miscellaneous/Math_Science/Q_21813765.html) but , i don't know can I really use Ti-89 to slove it

Maximize Z = 5X1+4X2
subject to
X1 + X2 <=5
10X1+ 6X2 <= 45
X1, X2 >=0 and integers
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
I'm not sure I entirely understand your question... you want to solve that problem without using a program to do so but by using a series of built-in functions?
0
Author Commented:
it doesn't matter use program or builtin function. as long as solve the problem. The example I mention above is using a program so it make more easy to solve the problem but the question can be solve by using buildin function as well.

In this Interger program case, I have no any idea what to do by using TI 89
0
Commented:
I don't know of built-ins that will do it, but you can write a program that will interate through all combinations (0-5) of x1 and x2, finding the max value for Z

press "Apps"
Select "Program Editor"
Select "New..."
Select type: program
Give it a name (eg: maxz)
Type below for the program
After entering, exit program: press quit (2nd, then ESC)
Run program by typing name, then parens (eg:  maxz()  )

**********PROGRAM CODE**********
test1()
Prgm

0-> mz
For x1,0,5
For x2,0,5

1->v

If x1+x2>5 Then
0->v
EndIf

If 10*x1+6*x2>45 Then
0->v
EndIf

If 1=v THen
5*x1+4*x2->z
If z>mz Then
z->mz
x1->mx1
x2->mx2
EndIf
EndIf

EndFor
EndFor

EndPrgm
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
hi ,
what is the symbol "->"?, how can I type it into Ti89?
0
Commented:
It's the sto-> key, just above the on button.
0
Author Commented:
thank you
How about space? how can I put space after "For" like

For x1,0,5
0
Commented:
The easiest way to "type" the control commands is
While in program editor:
Arrow down to "For...EndFor"
Press Enter

This will type a "For " on the current line (including the space) and "EndFor" on the next line

If you just want to type a space, press alpha (purple key),then press "(-)" button (next to Enter)
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Math / Science

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.