Skip to content

Commit 4c1004e

Browse files
committed
Exercise CI to test ipopt
1 parent 488abca commit 4c1004e

File tree

4 files changed

+53
-13
lines changed

4 files changed

+53
-13
lines changed

.github/actions/setup_optimizers_linux/action.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ runs:
4141
name: Download Installers
4242
run: |
4343
curl -L -o ~/installers/gurobi.tar.gz https://packages.gurobi.com/11.0/gurobi11.0.0_linux64.tar.gz
44-
curl -L -o ~/installers/copt.tar.gz https://pub.shanshu.ai/download/copt/7.1.4/linux64/CardinalOptimizer-7.1.4-lnx64.tar.gz
44+
curl -L -o ~/installers/copt.tar.gz https://pub.shanshu.ai/download/copt/7.2.2/linux64/CardinalOptimizer-7.2.2-lnx64.tar.gz
4545
curl -L -o ~/installers/mosek.tar.bz2 https://download.mosek.com/stable/10.2.0/mosektoolslinux64x86.tar.bz2
46+
curl -L -o ~/installers/idaes-solvers.tar.gz https://github.com/IDAES/idaes-ext/releases/download/3.4.2/idaes-solvers-ubuntu2204-x86_64.tar.gz
4647
4748
- name: Setup Gurobi Installation
4849
shell: bash
@@ -73,9 +74,9 @@ runs:
7374
COPT_CLIENT_INI: ${{ inputs.COPT_CLIENT_INI }}
7475
run: |
7576
tar xfz ~/installers/copt.tar.gz -C ~/
76-
ls ~/copt71
77+
ls ~/copt72
7778
# set environment variables
78-
export COPT_HOME="${HOME}/copt71"
79+
export COPT_HOME="${HOME}/copt72"
7980
echo "COPT_HOME=${COPT_HOME}" >> $GITHUB_ENV
8081
echo "PATH=${PATH}:${COPT_HOME}/bin" >> $GITHUB_ENV
8182
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${COPT_HOME}/lib" >> $GITHUB_ENV
@@ -99,7 +100,7 @@ runs:
99100
ls ~/mosek
100101
# set environment variables
101102
export MOSEK_10_2_BINDIR="${HOME}/mosek/10.2/tools/platform/linux64x86/bin"
102-
echo "MOSEK_10_2_BINDIR=${MOSEK_10_1_BINDIR}" >> $GITHUB_ENV
103+
echo "MOSEK_10_2_BINDIR=${MOSEK_10_2_BINDIR}" >> $GITHUB_ENV
103104
echo "PATH=${PATH}:${MOSEK_10_2_BINDIR}" >> $GITHUB_ENV
104105
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MOSEK_10_2_BINDIR}" >> $GITHUB_ENV
105106
echo $MOSEK_10_2_BINDIR
@@ -112,3 +113,15 @@ runs:
112113
shell: bash
113114
run: |
114115
msktestlic
116+
117+
- name: Setup IPOPT Installation
118+
shell: bash
119+
run: |
120+
mkdir -p ~/ipopt
121+
tar xfz ~/installers/idaes-solvers.tar.gz -C ~/ipopt
122+
echo "PATH=${PATH}:${HOME}/ipopt" >> $GITHUB_ENV
123+
ls ~/ipopt
124+
- name: Test IPOPT
125+
shell: bash
126+
run: |
127+
ipopt -v

.github/actions/setup_optimizers_macos/action.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,21 @@ runs:
4949
name: Download Universal Installers
5050
run: |
5151
curl -L -o ~/installers/gurobi.pkg https://packages.gurobi.com/11.0/gurobi11.0.0_macos_universal2.pkg
52-
curl -L -o ~/installers/copt.tar.gz https://pub.shanshu.ai/download/copt/7.1.4/osx64/CardinalOptimizer-7.1.4-universal_mac.tar.gz
52+
curl -L -o ~/installers/copt.tar.gz https://pub.shanshu.ai/download/copt/7.2.2/osx64/CardinalOptimizer-7.2.2-universal_mac.tar.gz
5353
5454
- if: ${{ (steps.cache-installers-macos.outputs.cache-hit != 'true') && (inputs.ARCH == 'X64') }}
5555
shell: bash
5656
name: Download X64 Installers
5757
run: |
5858
curl -L -o ~/installers/mosek.tar.bz2 https://download.mosek.com/stable/10.2.0/mosektoolsosx64x86.tar.bz2
59+
curl -L -o ~/installers/idaes-solvers.tar.gz https://github.com/IDAES/idaes-ext/releases/download/3.4.2/idaes-solvers-darwin-x86_64.tar.gz
5960
6061
- if: ${{ (steps.cache-installers-macos.outputs.cache-hit != 'true') && (inputs.ARCH == 'ARM64') }}
6162
shell: bash
6263
name: Download ARM64 Installers
6364
run: |
6465
curl -L -o ~/installers/mosek.tar.bz2 https://download.mosek.com/stable/10.2.0/mosektoolsosxaarch64.tar.bz2
66+
curl -L -o ~/installers/idaes-solvers.tar.gz https://github.com/IDAES/idaes-ext/releases/download/3.4.2/idaes-solvers-darwin-aarch64.tar.gz
6567
6668
- name: Setup Gurobi Installation
6769
shell: bash
@@ -93,9 +95,9 @@ runs:
9395
COPT_CLIENT_INI: ${{ inputs.COPT_CLIENT_INI }}
9496
run: |
9597
tar xfz ~/installers/copt.tar.gz -C ~/
96-
ls ~/copt71
98+
ls ~/copt72
9799
# set environment variables
98-
export COPT_HOME="${HOME}/copt71"
100+
export COPT_HOME="${HOME}/copt72"
99101
echo "COPT_HOME=${COPT_HOME}" >> $GITHUB_ENV
100102
echo "PATH=${PATH}:${COPT_HOME}/bin" >> $GITHUB_ENV
101103
echo "DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${COPT_HOME}/lib" >> $GITHUB_ENV
@@ -154,3 +156,15 @@ runs:
154156
shell: bash
155157
run: |
156158
msktestlic
159+
160+
- name: Setup IPOPT Installation
161+
shell: bash
162+
run: |
163+
mkdir -p ~/ipopt
164+
tar xfz ~/installers/idaes-solvers.tar.gz -C ~/ipopt
165+
echo "PATH=${PATH}:${HOME}/ipopt" >> $GITHUB_ENV
166+
ls ~/ipopt
167+
- name: Test IPOPT
168+
shell: bash
169+
run: |
170+
ipopt -v

.github/actions/setup_optimizers_windows/action.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ runs:
5252
name: Download Installers
5353
run: |
5454
curl -L -o D:\installers\gurobi.msi https://packages.gurobi.com/11.0/Gurobi-11.0.0-win64.msi
55-
curl -L -o D:\installers\copt.zip https://pub.shanshu.ai/download/copt/7.1.4/win64/CardinalOptimizer-7.1.4-win64.zip
55+
curl -L -o D:\installers\copt.zip https://pub.shanshu.ai/download/copt/7.2.2/win64/CardinalOptimizer-7.2.2-win64.zip
5656
curl -L -o D:\installers\mosek.msi https://download.mosek.com/stable/10.2.0/moseksetupwin64x86.msi
57+
curl -L -o D:\installers\idaes-solvers.tar.gz https://github.com/IDAES/idaes-ext/releases/download/3.4.2/idaes-solvers-windows-x86_64.tar.gz
5758
5859
- name: Setup Gurobi Installation
5960
shell: pwsh
@@ -85,10 +86,10 @@ runs:
8586
run: |
8687
# unzip with 7zip
8788
7z x D:\installers\copt.zip -oD:\
88-
ls D:\copt71
89+
ls D:\copt72
8990
# set environment variables
90-
echo "COPT_HOME=D:\copt71" >> $env:GITHUB_ENV
91-
echo "PATH=$env:PATH;D:\copt71\bin" >> $env:GITHUB_ENV
91+
echo "COPT_HOME=D:\copt72" >> $env:GITHUB_ENV
92+
echo "PATH=$env:PATH;D:\copt72\bin" >> $env:GITHUB_ENV
9293
echo $env:COPT_HOME
9394
9495
# Just use the size-limited license
@@ -122,3 +123,14 @@ runs:
122123
shell: pwsh
123124
run: |
124125
msktestlic
126+
127+
- name: Setup IPOPT solver
128+
shell: pwsh
129+
run: |
130+
7z x -so D:\installers\idaes-solvers.tar.gz | 7z x -si -ttar -oD:\ipopt
131+
echo "PATH=$env:PATH;D:\ipopt" >> $env:GITHUB_ENV
132+
ls D:\ipopt
133+
- name: Test IPOPT
134+
shell: pwsh
135+
run: |
136+
D:\ipopt\ipopt.exe -v

optimizer_version.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Gurobi = "11.0.0"
2-
COPT = "7.1.4"
2+
COPT = "7.2.2"
33
MOSEK = "10.2.0"
4-
HiGHS = "1.7.0"
4+
HiGHS = "1.8.1"
5+
IPOPT = "3.13.2"

0 commit comments

Comments
 (0)