Skip to content

Commit f2001e9

Browse files
Merge pull request #678 from SebastianM-C/no_show
remove extra `@show`s
2 parents 4192d89 + 07122e9 commit f2001e9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

lib/OptimizationMOI/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OptimizationMOI"
22
uuid = "fd9f6733-72f4-499f-8506-86b2bdd0dea1"
33
authors = ["Vaibhav Dixit <[email protected]> and contributors"]
4-
version = "0.3.2"
4+
version = "0.3.3"
55

66
[deps]
77
Ipopt_jll = "9cc047cb-c261-5740-88fc-0cf96f7bdcc7"

lib/OptimizationMOI/src/nlp.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ function MOIOptimizationNLPCache(prob::OptimizationProblem,
176176
expr = convert_to_expr(obj_expr, expr_map; expand_expr = false)
177177
expr = repl_getindex!(expr)
178178
cons = MTK.constraints(sys)
179-
@show cons
180179
_cons_expr = Vector{Expr}(undef, length(cons))
181180
for i in eachindex(cons)
182181
_cons_expr[i] = repl_getindex!(convert_to_expr(cons_expr[i],
@@ -185,9 +184,6 @@ function MOIOptimizationNLPCache(prob::OptimizationProblem,
185184
end
186185
end
187186

188-
@show expr
189-
@show _cons_expr
190-
191187
evaluator = MOIOptimizationNLPEvaluator(f,
192188
reinit_cache,
193189
prob.lb,
@@ -401,15 +397,12 @@ function MOI.objective_expr(evaluator::MOIOptimizationNLPEvaluator)
401397
end
402398

403399
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
405401
cons_expr = deepcopy(evaluator.cons_expr[i].args[2])
406402
repl_getindex!(cons_expr)
407403
_replace_parameter_indices!(cons_expr, evaluator.p)
408404
_replace_variable_indices!(cons_expr)
409405
lb, ub = Float64(evaluator.lcons[i]), Float64(evaluator.ucons[i])
410-
@show lb
411-
@show ub
412-
@show cons_expr
413406
if lb == ub
414407
return Expr(:call, :(==), cons_expr, lb)
415408
else

0 commit comments

Comments
 (0)