Neural-network-based Path Planning Optimization