OptimizationServer (Python)
This service receives LP/QP optimization problems and solves them with Pyomo backends, returning results through the OptArrow API interface.
Project Structure
python/pyomo/
├── problems/
│ ├── lp_problem.py
│ └── qp_problem.py
├── controller/
│ └── arrow_rpc_server.py
├── service/
│ └── cobra_solver.py
└── objects/
├── base_problem.py
├── problem_factory.py
├── solver_factory.py
└── solver.py
Getting Started
Install Python dependencies from the project root:
poetry install --no-root
Install required solvers as needed (for example HiGHS, Gurobi, Ipopt).
Start the Python engine:
./scripts/startPyEngine.sh
Expected startup log:
INFO: Server running at grpc://0.0.0.0:8101
To launch all components (gateway + engines), use:
./scripts/startAll.sh