Planning and Learning in Hybrid Discrete-Continuous Models