Skip to content

Commit

Permalink
fix #112. MIPVerify uses the bounds computed from the input set to co…
Browse files Browse the repository at this point in the history
…ntraint the network. So we also need to add the input set as a constraint to the optimization problem.
  • Loading branch information
changliuliu committed Jul 13, 2020
1 parent 16d5522 commit 4ff2a26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/optimization/mipVerify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function solve(solver::MIPVerify, problem::Problem)
model = Model(solver)
neurons = init_neurons(model, problem.network)
deltas = init_deltas(model, problem.network)
add_set_constraint!(model, problem.input, first(neurons))
add_complementary_set_constraint!(model, problem.output, last(neurons))
bounds = get_bounds(problem)
encode_network!(model, problem.network, neurons, deltas, bounds, BoundedMixedIntegerLP())
Expand Down

0 comments on commit 4ff2a26

Please sign in to comment.