Skip to content

Commit f1be88a

Browse files
committed
single disjunct constraints are allowed
(always selected as long as choose at least 1 is used for the binaries)
1 parent bc193fb commit f1be88a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Add disjunction and reformulate.
8585
function add_disjunction!(m::Model,disj...;reformulation::Symbol,M=missing=1e-6,name=missing)
8686
#run checks
8787
@assert reformulation in [:big_m, :hull] "Invalid reformulation method passed to keyword argument `:reformulation`. Valid options are :big_m (Big-M Reformulation) and :hull (Hull Reformulation)."
88-
@assert length(disj) > 1 "At least 2 disjuncts must be included. If there is an empty disjunct, use `nothing`."
88+
# @assert length(disj) > 1 "At least 2 disjuncts must be included. If there is an empty disjunct, use `nothing`."
8989

9090
#create indicator variable
9191
bin_var = ismissing(name) ? Symbol("disj_",gensym()) : name

0 commit comments

Comments
 (0)