Automatic Synthesis of Topologies and Numerical Parameters