Uredan Prvi

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

MATLAB Command Window Page 1

>> A=[-32.4 -27.8;32.4 27.8]

A =

-32.4000 -27.8000
32.4000 27.8000

>> b=[-200 230]

b =

-200 230

>> f=[2839.86 2500]

f =

1.0e+03 *

2.8399 2.5000

>> ub=[3 5]

ub =

3 5

>> lb=[0 0]

lb =

0 0

>> Aeq=[]

Aeq =

[]

>> beq=[]

beq =

[]

>> [x,fval]=linprog(f,A,b,Aeq,beq,lb,ub)

Optimal solution found.

x =

3.0000
3.6978
MATLAB Command Window Page 2

fval =

1.7764e+04

>>

You might also like