experimentation.
I'll explain, with out having a number for drag or drive train efficiency you can't really calculate top speed possible making it hard to calculate the gear ratios and other setting needed to do so. but there is a process of sorts. Minimize downforce and ride height. Maximize final gear with top gear being close to 1. fine tune till you stop accelerating at just above peek power.