We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec13c1 commit 06f9110Copy full SHA for 06f9110
src/NonLinearProgram/nlp_utilities.jl
@@ -255,9 +255,9 @@ function compute_solution_and_bounds(model::Model; tol = 1e-6)
255
model.y[form.nlp_index_2_constraint[con].value] *
256
(-sense_multiplier)
257
if sense_multiplier == 1.0
258
- @assert V_U[num_vars+num_geq+i] <= -tol "Dual of leq constraint must be positive: $i $(V_U[num_vars+i])"
+ @assert V_U[num_vars+num_geq+i] >= -tol "Dual of leq constraint must be positive: $i $(V_U[num_vars+i])"
259
else
260
- @assert V_U[num_vars+num_geq+i] >= tol "Dual of leq constraint must be negative: $i $(V_U[num_vars+i])"
+ @assert V_U[num_vars+num_geq+i] <= tol "Dual of leq constraint must be negative: $i $(V_U[num_vars+i])"
261
end
262
263
return X, # Primal and slack solution
0 commit comments