simpleai-team / simpleai

simple artificial intelligence utilities
MIT License
969 stars 250 forks source link

Provide support to change accumulated cost #18

Open fisadev opened 12 years ago

fisadev commented 12 years ago

The original Problem.cost() on aima-python receives the state, the actions, and the total cost, and expects to a new total cost to be returned. On simpleai we have changed that, to accept only the states and the action, and expect just the cost of that action to be returned. But this doesn't works for problem with actions that alter the costs of the previously taken actions.

fisadev commented 12 years ago

I have the patch to the code, but need to update all the docs. I will do that on the next few days.