Add helper functions for multi-objective optimization + refactoring (#6473)
authorOuyancheng <1024842937@qq.com>
Wed, 5 May 2021 00:34:54 +0000 (17:34 -0700)
committerGitHub <noreply@github.com>
Wed, 5 May 2021 00:34:54 +0000 (00:34 +0000)
commitf9eee2d3a33c38bec3efb5dda91d43ef55c992d7
tree9e0bac7b510d15a20cd497a783ed47277f46abb7
parent8a7c43f82b17a444c2f9518bc27f4ea8afe21201
Add helper functions for multi-objective optimization + refactoring (#6473)

add 3 helper functions
judge whether a node is optimizable
make strong improvement expression according to optimization objective
make weak improvement expression according to optimization objective
optChecker is now created by optimizationSolver instead of the minimize/maximize functions
Slightly refactors function signatures so that they are accepting OptimizationObjective instead of accepting target, type in separate parameters.
src/omt/bitvector_optimizer.cpp
src/omt/bitvector_optimizer.h
src/omt/integer_optimizer.cpp
src/omt/integer_optimizer.h
src/omt/omt_optimizer.cpp
src/omt/omt_optimizer.h
src/smt/optimization_solver.cpp
src/smt/optimization_solver.h