Skip to content

Commit eb98eff

Browse files
authored
Merge pull request #76 from hdavid16/fix_documenter
fix documenter task
2 parents 4463d0c + c146725 commit eb98eff

File tree

12 files changed

+24
-36
lines changed

12 files changed

+24
-36
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ Prior to `v0.4.0`, the package did not leverage the JuMP extension capabilities
129129
The example below is from the [Cornell University Computational Optimization Open Textbook](https://optimization.cbe.cornell.edu/index.php?title=Disjunctive_inequalities#Big-M_Reformulation[1][2]).
130130

131131
```julia
132-
using JuMP
133132
using DisjunctiveProgramming
134133
135134
m = GDPModel()

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[deps]
2+
DisjunctiveProgramming = "0d27d021-0159-4c7d-b4a7-9ccb5d9366cf"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

docs/make.jl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
push!(LOAD_PATH,"../src/")
21
using DisjunctiveProgramming
32
using Documenter
43
makedocs(
5-
sitename = "DisjunctiveProgramming.jl",
6-
modules = [DisjunctiveProgramming],
7-
pages=[
8-
"Home" => "index.md"
9-
])
4+
sitename = "DisjunctiveProgramming.jl",
5+
modules = [DisjunctiveProgramming],
6+
pages=[
7+
"Home" => "index.md"
8+
],
9+
checkdocs = :none
10+
)
1011
deploydocs(;
1112
repo="github.com/hdavid16/DisjunctiveProgramming.jl",
1213
)

examples/ex1.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using JuMP
21
using DisjunctiveProgramming
32
using HiGHS
43

examples/ex2.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# https://optimization.cbe.cornell.edu/index.php?title=Disjunctive_inequalities#Big-M_Reformulation[1][2]
2-
using JuMP
32
using DisjunctiveProgramming
43
using HiGHS
54

examples/ex3.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using JuMP
21
using DisjunctiveProgramming
32

43
m = GDPModel()

examples/ex4.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using JuMP
21
using DisjunctiveProgramming
32

43
# Example with proposition reformulation

examples/ex5.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# https://arxiv.org/pdf/2303.04375.pdf
2-
3-
using JuMP
42
using DisjunctiveProgramming
53

64
##

examples/ex6.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using JuMP
21
using DisjunctiveProgramming
32

43
##

src/constraints.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,11 @@ cardinality sets: `AtLeast(n)`, `AtMost(n)`, or `Exactly(n)`.
417417
To select exactly 1 logical variable `Y` to be `true`, do
418418
(the same can be done with `AtLeast(n)` and `AtMost(n)`):
419419
420-
```jldoctest
421-
julia> model = GDPModel();
422-
julia> @variable(model, Y[i = 1:2], Logical);
423-
julia> @constraint(model, [Y[1], Y[2]] in Exactly(1));
420+
```julia
421+
using DisjunctiveProgramming
422+
model = GDPModel();
423+
@variable(model, Y[i = 1:2], LogicalVariable);
424+
@constraint(model, [Y[1], Y[2]] in Exactly(1));
424425
```
425426
426427
JuMP.build_constraint(

0 commit comments

Comments
 (0)