Skip to content

Commit d142456

Browse files
committed
set BigM as the default reformulation method
1 parent ad813ad commit d142456

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Two types of logical constraints are supported:
7070
- `` or `logical_or` or `||` (OR, typed with `\vee + tab`).
7171
- `` or `logical_and` or `&&` (AND, typed with `\wedge + tab`).
7272
- `¬` or `logical_not` (NOT, typed with `\neg + tab`).
73-
- `` of `implies` (Implication, typed with `\Longrightarrow + tab`).
73+
- `` or `implies` (Implication, typed with `\Longrightarrow + tab`).
7474
- `` or `iff` or `==` (double implication or equivalence, typed with `\Leftrightarrow + tab`).
7575

7676
The `@constraint` JuMP macro is used to create these constraints using `:=`:

src/model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ end
1818
# See https://github.com/jump-dev/JuMP.jl/blob/9ea1df38fd320f864ab4c93c78631d0f15939c0b/src/JuMP.jl#L718-L745
1919
function _optimize_hook(
2020
model::Model;
21-
method::AbstractSolutionMethod
21+
method::AbstractSolutionMethod = BigM()
2222
) # can add more kwargs if wanted
2323
if !_ready_to_optimize(model) || _solution_method(model) != method
2424
reformulate_model(model, method)

0 commit comments

Comments
 (0)