Solved

Posted on 2006-04-17

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

I know how to solve it, if the question is asking Linear program (http://www.experts-exchan

Maximize Z = 5X1+4X2

subject to

X1 + X2 <=5

10X1+ 6X2 <= 45

X1, X2 >=0 and integers

7 Comments

In this Interger program case, I have no any idea what to do by using TI 89

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

thank you for your help, could you please tell me..

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

While in program editor:

press F2 (Select "Control" menu)

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)

By clicking you are agreeing to Experts Exchange's Terms of Use.

Title | # Comments | Views | Activity |
---|---|---|---|

Six sigma statistic | 6 | 70 | |

Q1. Magnets and Electromagnetism | 33 | 81 | |

Frequency distribution | 6 | 35 | |

Permutation and Combination | 9 | 24 |

Join the community of 500,000 technology professionals and ask your questions.

Connect with top rated Experts

**20** Experts available now in Live!