The Complex optimizer