Optimal Control For Direct-Injection Compression-Ignition Engines