diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31d00ba..73a8b57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,9 +30,9 @@ jobs: ${{ runner.os }}- - shell: bash env: - ARTELYS_LIC_5006_JUMP_DEV_2022_08_24: ${{ secrets.ARTELYS_LIC_5006_JUMP_DEV_2022_08_24 }} + ARTELYS_LIC_JUMP_DEV: ${{ secrets.ARTELYS_LIC_8326_JUMP_DEV_2023_11_02 }} run: | - echo "$ARTELYS_LIC_5006_JUMP_DEV_2022_08_24" > ~/artelys_lic.txt + echo "$ARTELYS_LIC_JUMP_DEV" > ~/artelys_lic.txt - uses: julia-actions/julia-buildpkg@v1 env: SECRET_KNITRO_URL: ${{ secrets.SECRET_KNITRO_URL }} diff --git a/src/MOI_wrapper.jl b/src/MOI_wrapper.jl index a153959..2d116bb 100644 --- a/src/MOI_wrapper.jl +++ b/src/MOI_wrapper.jl @@ -224,7 +224,8 @@ end MOI.supports(model::Optimizer, ::MOI.TimeLimitSec) = true function MOI.get(model::Optimizer, ::MOI.TimeLimitSec) - return KN_get_double_param(model.inner, KN_PARAM_MAXTIMECPU) + ret = KN_get_double_param(model.inner, KN_PARAM_MAXTIMECPU) + return ret == 1e8 ? nothing : ret end function MOI.set(model::Optimizer, ::MOI.TimeLimitSec, value)