PES = Pesquisa Operacional

Prof. Milton Procópio de Borba

Um exercício com 7 restrições

> restart:

> with(plots):

Warning, the name changecoords has been redefined

> Rest:=[ 3*y-x <=9, x-2*y <=10, 2*x+y <=10, 2*x+y >=5, x-y<=3, x>=0,y>=1];

Rest := [3*y-x <= 9, x-2*y <= 10, 2*x+y <= 10, 5 <=...

> Regiao_factivel:=inequal(Rest, x=0..5,y=0..5, optionsfeasible=(color=gray),optionsexcluded=(color=white)):

> retamax:=contourplot(x+2*y,x=0..5,y=0..5,contours=[5,6,10],linestyle=4,color=red):

> display([Regiao_factivel,retamax]);

[Maple Plot]

>

Sol_graf7.mws