Ai Dreams Forum

Please login or register.

Pages: [1]   Go Down

Author Topic: LifeAI open source C++ library  (Read 693 times)

jeremiah

  • Newbie
  • *
  • Posts: 3

LifeAI open source C++ library
« on: September 08, 2011, 11:57:38 PM »
LifeAI is an open source C++ library for Artificial Intelligence decision-making. It can be integrated in computer games, robotics, or anything that requires simulated intelligence.

Entities and actions are created in C++ and text files with LifeAI's syntax.  Entities have characteristics that describe them called "stats".  They consider their value of the stats and how much they are modified to assess the "pros" and "cons" of an action.  They also consider their value of other entities involved in the action and how it affects them.  They can then determine an overall value for performing the action. As stats in the simulation change, LifeAI updates the best action options for the entities. The actions can then be implemented as needed in a simulation.

LifeAI is licensed under the MIT X11 license.  The library and a demonstration application can be downloaded at this link:

http://www.lifeai.com/download.html
« Last Edit: September 12, 2011, 07:47:33 AM by jeremiah »

ivanv

  • Trusty Member
  • Jr Member
  • *****
  • Posts: 89
  • automatic mistake machine

Re: LifeAI open source C++ library
« Reply #1 on: September 09, 2011, 10:20:01 AM »
hi jeremiah :)

i've surfed over the site. i'm wandering how algorithm for best action decision works?

jeremiah

  • Newbie
  • *
  • Posts: 3

Re: LifeAI open source C++ library
« Reply #2 on: September 09, 2011, 11:22:53 PM »
Sure. :)  First, you may want to refer to this if any of the terminology is foreign:
http://www.lifeai.com/guide_files/general.html#terms
Here is a description of entity logic when actions are considered in laiUpdate():

1. Variable requirements considered, action only occurs if met

2. Entity requirements considered, entities only considered for roles if met

3. Modification amounts calculated
- starts with raw mod amount
- adjusted by mod influencers.
(Influencers are calculated by first determining how far the stat amount is from the universal stat norm.  Once that is obtained, they are divided by the stat norm.  For inverse influencers, the relationship is flipped.  The norm is divided by the stat amount.  Influencers are also scaled by a weight.)
- restricted by stat min/max
- restricted by mod min/max

4. Modification values calculated
- calculate percentage of stat modified
- multiply percentage modified by entity value of stat
- adjusted by mod value influencers
- restricted by mod value min/max

5. Role values calculated
- all of the mod values added together for the role
- entity in a particular role looks at the role values of all roles, scales them according to their value of the entity occupying the role, adds the resulting scaled and polarized role values together to form their final role val.
- restricted by role value min/max

Note: Reviewing this helped me spot an error in the manual.  Any file syntax reference to "ENT_VAL" should be "VAL_ENT".  This will be corrected in a future release.  Please let me know if I should clarify anything.

jeremiah

  • Newbie
  • *
  • Posts: 3

Re: LifeAI open source C++ library
« Reply #3 on: September 12, 2011, 07:44:40 AM »
It has come to my attention that I need a more basic description of LifeAI's logic for beginners to understand.  I have updated the main LifeAI page and my initial forum post with a simpler description.
Pages: [1]   Go Up
 

Welcome

Please login or register.

Login with username, password and session length

Users Online

10 Guests, 1 User
Users active in past 15 minutes:
TheGeek
[Newbie]

Most Online Today: 17. Most Online Ever: 208 (August 27, 2008, 08:36:30 AM)

Articles

Latest Media Item

 
new chair?
 Views: 630
Posted by Duskrider
May 19, 2013
in Characters
Chatterbot Collection
Chatterbot Collection
BragiSoft
CallMom
Chatbots.org AI Zone
Datahopa
free counters



Eyes On Drainage Services
SMF 2.0.4 | SMF © 2013, Simple Machines
BlueLight design by Bloc
Page created in 0.356 seconds with 21 queries.