@@ -176,7 +176,6 @@ function MOIOptimizationNLPCache(prob::OptimizationProblem,
176
176
expr = convert_to_expr (obj_expr, expr_map; expand_expr = false )
177
177
expr = repl_getindex! (expr)
178
178
cons = MTK. constraints (sys)
179
- @show cons
180
179
_cons_expr = Vector {Expr} (undef, length (cons))
181
180
for i in eachindex (cons)
182
181
_cons_expr[i] = repl_getindex! (convert_to_expr (cons_expr[i],
@@ -185,9 +184,6 @@ function MOIOptimizationNLPCache(prob::OptimizationProblem,
185
184
end
186
185
end
187
186
188
- @show expr
189
- @show _cons_expr
190
-
191
187
evaluator = MOIOptimizationNLPEvaluator (f,
192
188
reinit_cache,
193
189
prob. lb,
@@ -401,15 +397,12 @@ function MOI.objective_expr(evaluator::MOIOptimizationNLPEvaluator)
401
397
end
402
398
403
399
function MOI. constraint_expr (evaluator:: MOIOptimizationNLPEvaluator , i)
404
- # expr has the form f(x,p) == 0 or f(x,p) <= 0
400
+ # expr has the form f(x,p) == 0 or f(x,p) <= 0
405
401
cons_expr = deepcopy (evaluator. cons_expr[i]. args[2 ])
406
402
repl_getindex! (cons_expr)
407
403
_replace_parameter_indices! (cons_expr, evaluator. p)
408
404
_replace_variable_indices! (cons_expr)
409
405
lb, ub = Float64 (evaluator. lcons[i]), Float64 (evaluator. ucons[i])
410
- @show lb
411
- @show ub
412
- @show cons_expr
413
406
if lb == ub
414
407
return Expr (:call , :(== ), cons_expr, lb)
415
408
else
0 commit comments