PyPSA / pypsa-server

A web interface for running PyPSA scenarios using the snakemake workflow
MIT License
7 stars 1 forks source link

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

Open pz-max opened 1 year ago

pz-max commented 1 year ago

missing HiGHS documentation

pz-max commented 1 year ago

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 git@github.com: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]