# ADMM_optimize **Repository Path**: AutumalEquinox/admm_optimize ## Basic Information - **Project Name**: ADMM_optimize - **Description**: 开源竞赛原创开源软件赛道 - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 55 - **Created**: 2026-05-20 - **Last Updated**: 2026-05-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ADMM Optimization Project This project implements a physical-layer security optimization scheme based on the Alternating Direction Method of Multipliers (ADMM), primarily designed for key generation and secure transmission optimization in wireless communication systems. ## Project Overview This project addresses the key generation problem in wireless physical-layer security by optimizing beamforming vectors to maximize the Secret Key Rate (SKR). It employs the CVX convex optimization toolbox combined with the ADMM algorithm to solve optimization problems under both far-field and near-field channel models. ## Main Features - **Channel Model Generation** - Far-field channel generation (Har_far_field_channel, hrk_far_field_channel) - Near-field channel generation (Har_near_field_channel, hrk_near_field_channel) - **ADMM Optimization Algorithm** - Optimization of beamforming vector v (optimize_v.m) - Optimization of beamforming vector w (optimize_w.m) - Lagrange multiplier update (lagrange_rho.m) - Auxiliary variable y update (update_y.m) - **CVX Convex Optimization Solver** - cvx_solve_v.m: Solve for variable v - cvx_solve_w.m: Solve for variable w - cvx_solve_pv.m: Solve for variable pv - cvx_solve_pw.m: Solve for variable pw - **Performance Evaluation** - Secret key rate computation (deduced_secret_key_rate_w.m) - Rate-distance analysis (RD.m) ## File Descriptions | File | Function Description | |------|----------------------| | main.m | Main program entry point | | main_different_eve.m | Performance testing under different eavesdropper locations | | main_test.m | Test main program | | optimize_v.m | ADMM optimization for variable v | | optimize_w.m | ADMM optimization for variable w | | update_y.m | Update auxiliary variable y | | lagrange_rho.m | Update Lagrange multiplier ρ | ## Usage Instructions 1. Ensure MATLAB and the CVX convex optimization toolbox are installed. 2. Run main.m as the main program entry point. 3. Optionally run main_different_eve.m to analyze system performance under varying eavesdropper positions. ## Dependencies - MATLAB R2016b or later - CVX convex optimization toolbox ## Algorithm Description This project employs the ADMM algorithm to solve the following optimization problem: ``` Maximize: Secret Key Rate Constraints: Transmit power constraints, security performance constraints, etc. ``` The algorithm iteratively optimizes the transmitter beamforming vector v and the receiver beamforming vector w until convergence. ## Notes - The CVX toolbox must be downloaded and installed separately. - It is recommended to read the comments within each optimization function to understand the specific constraints before running the code.