|
51 | 51 | ! be original, slack, surplus, or artificial variables. Slack and surplus variables are automat- |
52 | 52 | ! ically provided for the ≤ and ≥ constraints, and artificial variables for the = constraints. |
53 | 53 | ! The routine defines xₙ₊ᵢ to be the slack, surplus, or artificial variable for the iᵗʰ constraint |
54 | | -! aᵢ₁x₁ + … + aᵢₙxₙ{≤,=,≥}bᵢ. If IND = 0 then the slack, surplus, and artificial variables |
| 54 | +! aᵢ₁x₁ + … + aᵢₙxₙ {≤,=,≥} bᵢ. If IND = 0 then the slack, surplus, and artificial variables |
55 | 55 | ! are the initial basic variables that are employed. |
56 | 56 | ! |
57 | 57 | ! On output IND reports the status of the results. The routine assigns IND one of the |
|
71 | 71 | ! |
72 | 72 | ! BI is an array of dimension m² that is used for storing the inverse of the basis matrix. |
73 | 73 | ! The order of the column vectors of the basis matrix corresponds to the order of the basic |
74 | | -! variables given in IABIS. If IND ≠ 3,5 on output then BI contains the inverse of the basis |
| 74 | +! variables given in IBASIS. If IND ≠ 3,5 on output then BI contains the inverse of the basis |
75 | 75 | ! matrix currently in effect when the routine terminates. |
76 | 76 | ! WK is an array of dimension 2mn or larger, and IWK is an array of dimension 2m + n |
77 | 77 | ! or larger. WK and IWK are work spaces. |
@@ -104,7 +104,7 @@ python module simplex ! in |
104 | 104 | real intent(out), dimension(n0 + numle + numge), depend(n0, numle, numge) :: x |
105 | 105 | real intent(out) :: z |
106 | 106 | integer intent(out) :: iter |
107 | | - integer intent(in) :: mxiter |
| 107 | + integer intent(in), optional, depend(m) :: mxiter = 8 * m |
108 | 108 | integer intent(in), optional :: numle = 0 |
109 | 109 | integer intent(in), optional :: numge = 0 |
110 | 110 | real intent(hide), dimension(m, m), depend(m) :: bi |
|
0 commit comments