He was admitted at the Sciences Academy of Lisbon and graduated in military engineering at the Academia Real de Fortificação, Artilharia e Desenho.
Ia masuk Akademi Ilmu Pengetahuan Lisbon dan lulus dalam bidang teknik militer di Academia Real de Fortificação, Artilharia e Desenho.