Title: Efficient AI nonlinear planning based on resource reasoning