IdentificationDivision. Program-Id. pivot. author. Robert Sedgewick. * Simplex Verfahren, lineare Programmierung * aus Algorithmen p698 DataDivision. Working-StorageSection. 77 j pic9(4). 77 k pic9(4). LinkageSection. 01 a. 05pic9(4) occurs1000. 05pic9(4) occurs1000. 77 p pic9(4). 77 q pic9(4). 77 best pic9(4)V9(2) occurs1000. ProcedureDivisionusing cost val best. performvarying j from0until j=n performvarying k from m+1by -1until k=1 if j not = p and k not = q then compute a(j,k)=a(j,k)-a(p,k)*a(j,q)/a(p,q) end-perform end-perform performvarying j from0until j=n if j not = p then move0to a(j,q) end-perform performvarying k from1until k=m+1 if k not = q then compute a(p,k)=a(p,k)/a(p,q) end-perform move1to a(p,q) End-Program pivot.
IdentificationDivision. Program-Id. simplex. author. Robert Sedgewick. * Simplex Verfahren, lineare Programmierung * aus Algorithmen p698 DataDivision. Working-StorageSection. 77 j pic9(4). 77 k pic9(4). LinkageSection. 01 a. 05pic9(4) occurs1000. 05pic9(4) occurs1000. 77 p pic9(4). 77 q pic9(4). 77 best pic9(4)V9(2) occurs1000. ProcedureDivisionusing cost val best. performwithtestafter until (q=m+1) or (p=n+1) move0to q performwithtestafter until (q=m+1) or (a(0,q)<0) add1to q end-perform move0to p performwithtestafter until (p=n+1) or (a(p,q)>0) add1to p end-perform performvarying i from p+1until i=n if a(i,q)>0then if a(i,m+1)*a(i,q) < a(p,m+1)/a(p,q) then move i to p end-perform if (q<m+1) and (p<n+1) then call pivot using a p q end-perform End-Program pivot.
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.