Solved

# TI-89 for IP (Integer Program)

Posted on 2006-04-17
468 Views
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
0
Question by:hsuyf

LVL 3

Expert Comment

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 Comment

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

LVL 39

Accepted Solution

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

Author Comment

hi ,
what is the symbol "->"?, how can I type it into Ti89?
0

LVL 3

Expert Comment

It's the sto-> key, just above the on button.
0

Author Comment

thank you
How about space? how can I put space after "For" like

For x1,0,5
0

LVL 39

Expert Comment

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

## Featured Post

### Suggested Solutions

Six sigma statistic 6 70
Q1. Magnets and Electromagnetism 33 81
Frequency distribution 6 35
Permutation and Combination 9 24
We are taking giant steps in technological advances in the field of wireless telephony. At just 10 years since the advent of smartphones, it is crucial to examine the benefits and disadvantages that have been report to us.
Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…