.. oHySEM documentation master file, created by Erik Alvarez
Download & Installation
========================
The **oHySEM** model is developed using `Python 3.13.2 `_ and `Pyomo 6.9.2 `_, with `Gurobi 12.0.2 `_ as the commercial solver. Free solvers like `HiGHS`, `SCIP`, `GLPK`, and `CBC` are also supported. List available Pyomo solvers by running::
pyomo help -s
**Installing solvers:**
- Gurobi: ``conda install -c gurobi gurobi``
- HiGHS: ``pip install highspy``
- SCIP: ``conda install -c conda-forge pyscipopt``
- GLPK: ``conda install glpk``
**Installing oHySEM** via `pip `_:
``pip install oHySEM``
For the full setup guide, refer to the `installation guide `_.
**From GitHub:**
1. Clone the `oHySEM repository `_
2. Navigate to the folder: ``cd path_to_repository``
3. Install with: ``pip install .``
**Running oHySEM:**
After installation, you can run the model via the command line:
``oHySEM``
or using the Python script:
``python -m oHySEM --dir {path_to_input_data} --case {case_name} --solver {solver_name}``
**Running the API:**
To run the Streamlit API, execute the following command in the terminal that should be located in the path where the API.py file is located:
``streamlit run oHySEM_API.py``
**Solvers**:
- `HiGHS `_ (free)
- `Gurobi `_ (academic license available)
- `GLPK `_ (free)
- `CBC `_ (free)
**Additional requirements:**
- `Pandas `_
- `psutil `_
- `Plotly `_, `Altair `_, `Colour `_
- `NetworkX `_