This repository provides the Python implementation of the optimization framework proposed in
"Secure Rate-Splitting and RIS Beamforming with Untrusted Energy Harvesting Receivers"
The code jointly optimizes transmit beamforming for maximizing the secure energy efficiency (SEE) using:
- Successive Convex Approximation (SCA)
- Dinkelbach fractional programming
- CVXPY optimization
- MOSEK solver
Note: This implementation uses CVXPY with the MOSEK solver. A valid MOSEK installation and license are required for best performance.
- Multiuser SDMA downlink
- Physical layer security
- Secure energy efficiency maximization
- SCA-based convex approximation
- Monte Carlo simulations
- Publication-quality result plotting
Secure-EE-SDMA/
│
├── src/
│ ├── main_SDMA.py
│ ├── optimization.py
│ ├── sca_opt.py
│ ├── sca_funcs.py
│ ├── calculate_sinrs.py
│ └── Channels.py
│
├── results/
│ ├── results_sdma.npz
│ └── figures/
│
├── plot_results.py
├── requirements.txt
└── README.md
- Python 3.10+
- NumPy
- SciPy
- Matplotlib
- CVXPY
- MOSEK
Install the required packages
pip install -r requirements.txtRun
python src/main_SDMA.pyThe simulation automatically stores the results in
results_sdma.npz
Run
python plot_results.pyExample outputs include
- Minimum secrecy rate versus transmit power
- Secure energy efficiency versus transmit power
Typical default parameters
| Parameter | Value |
|---|---|
| BS antennas | 6 |
| Users | 4 |
| Eavesdroppers | 3 |
| Maximum power | 10–30 dBm |
| Episodes | 20 |
If you use this code in your research, please cite
H. R. Hashempour, L.-N. Tran, D. H. N. Nguyen, and H. Q. Ngo, "Secure Rate-Splitting and RIS Beamforming with Untrusted Energy Harvesting Receivers," IEEE International Conference on Communications Workshops (ICC Workshops), 2026, pp. 1–6.
DOI: https://doi.org/10.1109/ICCWorkshops63917.2026.11586471
@INPROCEEDINGS{11586471,
author={Hashempour, Hamid Reza and Tran, Le-Nam and Nguyen, Duy H. N. and Quoc Ngo, Hien},
booktitle={2026 IEEE International Conference on Communications Workshops (ICC Workshops)},
title={Secure Rate-Splitting and RIS Beamforming with Untrusted Energy Harvesting Receivers},
year={2026},
pages={1-6},
doi={10.1109/ICCWorkshops63917.2026.11586471}
}Hamid Reza Hashempour
School of Electronics, Electrical Engineering and Computer Science
Queen's University Belfast