An antenna system for optimizing gain of a repeater comprising: a donor antenna sub-system (105, 105D) configured to accept an incoming signal and to operate in one or more donor operational configurations; a server antenna sub-system (110, 110D) configured to relay an optimized version of the incoming signal and to operate in one or more server operational configurations; a processor to determine a configuration for the antenna system for generating the optimized version of the incoming signal, the configuration being based on an optimized value of a cost function of operating the donor antenna sub-system in each of the one or more donor operational configurations and the server antenna sub-system in each of the one or more server operational configurations, the cost function being based on one or more operational inputs, wherein both the donor and server operational configurations include multiple antenna elements each having a different sector, the antenna system further comprising: a first switch configured to toggle between the different donor sectors (120A, 120B); and a second switch configured to toggle between the different server sectors (130A, 130B), wherein the processor is configured to: cause the first switch to toggle between the different donor sectors; cause the second switch to toggle between the different server sectors; calculate the cost function for each configuration; determine the configuration for the antenna system for generating the optimized version of the incoming signal; and cause the first and second switches to toggle to the appropriate position according to the determined configuration. a donor antenna sub-system (105, 105D) configured to accept an incoming signal and to operate in one or more donor operational configurations; a server antenna sub-system (110, 110D) configured to relay an optimized version of the incoming signal and to operate in one or more server operational configurations; a processor to determine a configuration for the antenna system for generating the optimized version of the incoming signal, the configuration being based on an optimized value of a cost function of operating the donor antenna sub-system in each of the one or more donor operational configurations and the server antenna sub-system in each of the one or more server operational configurations, the cost function being based on one or more operational inputs, wherein both the donor and server operational configurations include multiple antenna elements each having a different sector, the antenna system further comprising: a first switch configured to toggle between the different donor sectors (120A, 120B); and a second switch configured to toggle between the different server sectors (130A, 130B), wherein the processor is configured to: cause the first switch to toggle between the different donor sectors; cause the second switch to toggle between the different server sectors; calculate the cost function for each configuration; determine the configuration for the antenna system for generating the optimized version of the incoming signal; and cause the first and second switches to toggle to the appropriate position according to the determined configuration. a first switch configured to toggle between the different donor sectors (120A, 120B); and a second switch configured to toggle between the different server sectors (130A, 130B), wherein the processor is configured to: cause the first switch to toggle between the different donor sectors; cause the second switch to toggle between the different server sectors; calculate the cost function for each configuration; determine the configuration for the antenna system for generating the optimized version of the incoming signal; and cause the first and second switches to toggle to the appropriate position according to the determined configuration. cause the first switch to toggle between the different donor sectors; cause the second switch to toggle between the different server sectors; calculate the cost function for each configuration; determine the configuration for the antenna system for generating the optimized version of the incoming signal; and cause the first and second switches to toggle to the appropriate position according to the determined configuration.