diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0765492e1..219a0d6ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: arch: x64 steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v2 + - uses: julia-actions/setup-julia@latest with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} diff --git a/.github/workflows/doc_cleanup.yml b/.github/workflows/doc_cleanup.yml index 22d90435e..94b9f70ad 100644 --- a/.github/workflows/doc_cleanup.yml +++ b/.github/workflows/doc_cleanup.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout gh-pages branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: gh-pages - name: Delete preview and history + push changes @@ -23,4 +23,4 @@ jobs: git push --force origin gh-pages-new:gh-pages fi env: - PRNUM: ${{ github.event.number }} \ No newline at end of file + PRNUM: ${{ github.event.number }} diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 09465d588..8e6abd30b 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -11,7 +11,7 @@ jobs: env: GKSwstype: nul steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest with: version: '1' diff --git a/.github/workflows/format_check.yml b/.github/workflows/format_check.yml index c84860076..b1eee1212 100644 --- a/.github/workflows/format_check.yml +++ b/.github/workflows/format_check.yml @@ -10,10 +10,10 @@ jobs: build: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest with: version: '1' - - uses: actions/checkout@v1 - name: Format check shell: julia --color=yes {0} run: | diff --git a/docs/src/guides/debug_a_model.md b/docs/src/guides/debug_a_model.md index 21bb63f42..11cd7801a 100644 --- a/docs/src/guides/debug_a_model.md +++ b/docs/src/guides/debug_a_model.md @@ -56,14 +56,14 @@ julia> SDDP.write_subproblem_to_file(model[1], "subproblem.lp") julia> read("subproblem.lp") |> String |> print minimize -obj: 1.1 x_out + 1 x2 +obj: 1.1 x_out + 1 x4 subject to -balance: -1 y + 1 x_in - 1 x_out = 0 +balance: 1 x_in - 1 x_out - 1 y = 0 Bounds -y = 1.1 -x2 >= 0 x_in free x_out free +y = 1.1 +x4 >= 0 End ``` @@ -80,14 +80,14 @@ julia> SDDP.write_subproblem_to_file(model[1], "subproblem.lp") julia> read("subproblem.lp") |> String |> print minimize -obj: 3.3 x_out + 1 x2 +obj: 3.3 x_out + 1 x4 subject to -balance: -1 y + 1 x_in - 1 x_out = 0 +balance: 1 x_in - 1 x_out - 1 y = 0 Bounds -y = 3.3 -x2 >= 0 x_in free x_out free +y = 3.3 +x4 >= 0 End julia> rm("subproblem.lp") # Clean up.