Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'highs' #6

Open
pz-max opened this issue Mar 19, 2023 · 1 comment · May be fixed by #9
Open

FileNotFoundError: [Errno 2] No such file or directory: 'highs' #6

pz-max opened this issue Mar 19, 2023 · 1 comment · May be fixed by #9

Comments

@pz-max
Copy link

pz-max commented Mar 19, 2023

missing HiGHS documentation

@pz-max
Copy link
Author

pz-max commented Mar 20, 2023

This installation did not work in my case: https://github.com/PyPSA/PyPSA/blob/acf8584457b124391ebf45f417e5ab1e37e1d289/pypsa/linopt.py#L647-L664

    The script might only work for version HiGHS 1.1.1. Installation steps::
        sudo apt-get install cmake  # if not installed
        git clone [email protected]:ERGO-Code/HiGHS.git
        cd HiGHS
        git checkout 95342daa73543cc21e5b27db3e0fbf7330007541 # moves to HiGHS 1.1.1
        mkdir build
        cd build
        cmake ..
        make
        ctest

    Then in .bashrc add paths of executables and library ::
        export PATH="${PATH}:/foo/HiGHS/build/bin"
        export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/foo/HiGHS/build/lib"
        source .bashrc

    Now when typing ``highs`` in the terminal you should see something like ::
        Running HiGHS 1.1.1 [date: 2021-11-14, git hash: 95342daa]
        ```

@pz-max pz-max linked a pull request Mar 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant