Skip to content

Instantly share code, notes, and snippets.

View murphyyhuang's full-sized avatar

Yuanhanqing Huang murphyyhuang

View GitHub Profile
@murphyyhuang
murphyyhuang / gist:62f1fc67e2a0b02eea762f214f36ca03
Created June 18, 2022 22:04
Install cvxopt with glpk optimizer on Apple Silicon
# For a later reference
# Seems like not wheel for macOS M1 has been provided: https://github.com/cvxopt/cvxopt/issues/201
# Manually install according to https://cvxopt.org/install/
# Remember to specify the environment variables with the prefix 'CVXOPT_'
brew install gsl fftw suite-sparse glpk
git clone https://github.com/cvxopt/cvxopt.git
cd cvxopt
git checkout `git describe --abbrev=0 --tags`
export CVXOPT_BUILD_GLPK=1