Hub networks play a crucial role in optimizing transportation costs in air and road systems. Their main objective is to strategically locate hubs and allocate non-hub nodes within the network. The modular hub location problem is a specific area of hub network design that focuses on accurately calculating transportation costs, considering factors like trip numbers and capacity constraints in network routes. This study proposes a mixed-integer programming model to address the modular hub location problem with multiple allocations. It considers dependent and independent costs associated with vehicles per trip between hub network routes, considering specific vehicle capacities. Two datasets are utilized for validation: the CAB dataset representing 25 nodes of US airports and the TR dataset representing the Turkish transportation system with 81 nodes. To tackle the NP-hard nature of hub location models and the computational complexity of the proposed model, two solutions are developed. Firstly, a novel LP relaxation-based method using GAMS software provides near-optimal solutions for medium-sized instances. Additionally, a Genetic Algorithm (GA) implemented in MATLAB handles larger instances. The GA's efficiency is enhanced by tuning its parameters using the Taguchi method. Results analysis shows that both proposed algorithms yield high-quality solutions within significantly reduced timeframes compared to the CPLEX solver in GAMS software. The LP relaxation-based method performs well for medium-sized instances, while the GA approach is efficient for larger instances after parameter tuning with the Taguchi method.