@@ -127,67 +127,6 @@ The :mod:`snlp` Module
127
127
128
128
.. automodule :: snlp
129
129
130
-
131
- `SlackFramework ` is a general framework for converting the :ref: `general
132
- nonlinear optimization problem <nlp>` to a form using slack variables.
133
-
134
- The transformed problem is in the variables `x `, `s ` and `t ` and its
135
- constraints have the form
136
-
137
- .. math ::
138
-
139
- c_i(x) - a_i = 0 , & \qquad i = 1 , \ldots , m, \\
140
- g_j(x) - g_j^L - s_j^L = 0 , & \qquad j = 1 , \ldots , p,
141
- \qquad \text {for which} \quad g_j^L > -\infty , \\
142
- s_j^L \geq 0 , & \qquad j = 1 , \ldots , p,
143
- \qquad \text {for which} \quad g_j^L > -\infty , \\
144
- g_j^U - g_j(x) - s_j^U = 0 , & \qquad j = 1 , \ldots , p,
145
- \qquad \text {for which} \quad g_j^U < +\infty , \\
146
- s_j^U \geq 0 , & \qquad j = 1 , \ldots , p,
147
- \qquad \text {for which} \quad g_j^U < +\infty , \\
148
- x_k - x_k^L - t_k^L = 0 , & \qquad k = 1 , \ldots , n,
149
- \qquad \text {for which} \quad x_k^L > -\infty , \\
150
- t_k^L \geq 0 , & \qquad k = 1 , \ldots , n,
151
- \qquad \text {for which} \quad x_k^L > -\infty , \\
152
- x_k^U - x_k - t_k^U = 0 , & \qquad k = 1 , \ldots , n,
153
- \qquad \text {for which} \quad x_k^U < +\infty , \\
154
- t_k^U \geq 0 , & \qquad k = 1 , \ldots , n,
155
- \qquad \text {for which} \quad x_k^U < +\infty .
156
-
157
- In the latter problem, the only inequality constraints are bounds on
158
- the slack variables. The other constraints are (typically) nonlinear
159
- equalities.
160
-
161
- The order of variables in the transformed problem is as follows:
162
-
163
- [ x | sL | sU | tL | tU ]
164
-
165
- where:
166
-
167
- - sL = [ sLL | sLR ], sLL being the slack variables corresponding to
168
- general constraints with a lower bound only, and sLR being the slack
169
- variables corresponding to the 'lower' side of range constraints.
170
-
171
- - sU = [ sUU | sUR ], sUU being the slack variables corresponding to
172
- general constraints with an upper bound only, and sUR being the slack
173
- variables corresponding to the 'upper' side of range constraints.
174
-
175
- - tL = [ tLL | tLR ], tLL being the slack variables corresponding to
176
- variables with a lower bound only, and tLR being the slack variables
177
- corresponding to the 'lower' side of two-sided bounds.
178
-
179
- - tU = [ tUU | tUR ], tUU being the slack variables corresponding to
180
- variables with an upper bound only, and tLR being the slack variables
181
- corresponding to the 'upper' side of two-sided bounds.
182
-
183
- This framework initializes the slack variables sL, sU, tL, and tU to
184
- zero by default.
185
-
186
- Note that the slack framework does not update all members of AmplModel,
187
- such as the index set of constraints with an upper bound, etc., but
188
- rather performs the evaluations of the constraints for the updated
189
- model implicitly.
190
-
191
130
.. autoclass :: SlackModel
192
131
:show-inheritance:
193
132
:members:
0 commit comments