Skip to content

Commit e9dd395

Browse files
committed
Fixes
1 parent 02f83f4 commit e9dd395

File tree

6 files changed

+10
-20
lines changed

6 files changed

+10
-20
lines changed

REQUIRE

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "~0.19"
5+
Documenter = "0.27"

docs/make.jl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
using Documenter, StructDualDynProg
22

33
makedocs(
4-
format = :html,
54
sitename = "StructDualDynProg",
5+
# See https://github.com/JuliaDocs/Documenter.jl/issues/868
6+
format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true"),
67
pages = [
78
"Home" => "index.md",
89
"Quick Start" => "quickstart.md",
910
"Tutorial" => "tutorial.md",
1011
],
1112
# The following ensures that we only include the docstrings from
1213
# this module for functions define in Base that we overwrite.
13-
modules = [StructDualDynProg]
14+
modules = [StructDualDynProg],
1415
)
1516

1617
deploydocs(
1718
repo = "github.com/JuliaStochOpt/StructDualDynProg.jl.git",
18-
target = "build",
19-
osname = "linux",
20-
julia = "1.0",
21-
deps = nothing,
22-
make = nothing
19+
push_preview = true,
2320
)

src/StructProg/nlds.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ function solve!(nlds::NLDS{S}) where S
440440
set_objective_function(nlds.model.model, zero(AffExpr))
441441
JuMP.optimize!(nlds.model.model)
442442
set_objective_function(nlds.model.model, obj)
443+
end
443444
solution = StructJuMP.optimize(nlds.model)
444445
nlds.prevsol = Solution(
445446
solution.feasible ? :Optimal : :Infeasible,

test/hydro_thermal_scheduling.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
if s > 1
2525
@constraint(model, x[s, ξ] <= x[s-1, 1] + r[ξ] - y[s, ξ])
2626
else
27-
@constraint(model, x[s, ξ] <= Compat.Statistics.mean(r) - y[s, ξ])
27+
@constraint(model, x[s, ξ] <= Statistics.mean(r) - y[s, ξ])
2828
end
2929
@constraint(model, p[s, ξ] + y[s, ξ] >= d)
3030
@objective(model, Min, C * p[s, ξ])

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using JuMP
1+
using LinearAlgebra, Test
22
using CutPruners
3+
using JuMP
34
using StructJuMP
4-
using StructDualDynProg
5-
using Compat, Compat.LinearAlgebra, Test
65
using StochOptInterface
76
const SOI = StochOptInterface
7+
using StructDualDynProg
88

99
# solver independent tests
1010
include("comp.jl")

0 commit comments

Comments
 (0)