Scilab
-
#1
Lenne egy lineáris programozási feladatom, amit meg kellene oldanom scilabbal, de egyszerűen nem sikerül.
Van:
A=[88 71; 50 40; 44 56; -1 -1]
b=[7978; 4510; 5588; 1176; -36]
c=[-86; -85]
me=0
xa=[0; 0]
xf=[1000;1000]
Kellene az fopt,lagr és xopt, de egyszerűen mindig a következő hibát dobja a parancsra, amit így írok be:
[xopt,lagr,fopt]=linpro(c,A,b,xa,xf,me)
!--error 42
incompatible RHS
at line 41 of function quapro called by :
line 11 of function linpro called by :
[xopt,lagr,fopt]=linpro(c,A,b,xa,xf,me)
Előre is köszi.