Ps-i 2.0 - attributes
General description
An attribute is a quality of a particular agent. It can be expressed as a number, a true/false value or
something more comlex.
Section format
The following is an example describing attribute "influence":
attribute "influence"
type int
smallest 0
largest 1000
default 1
end
As you can see the attribute section starts with the keyword attribute that is followed by the
name of this particular attribute. Then we see a series of keywords followed by parameters. The section
is completed with keyword end.
The following keywords are available:
- type - declares type of the attribute. Should be followed by one of bool,int,
set or repertoire.
Note: currently set is not fully implemented
- default - declares default value (optional)
- smallest - declares smallest possible value (valid only for attributes of type int)
- largest - declares largest possible value (valid only for attributes of type int)
- size - declares size of the set or repertoire. Limited to 64
for sets and 56 for repertoires.
- bias_min - minimum possible value for bias. (valid only for attributes of type repertoire)
- bias_max - maximum possible value for bias. (valid only for attributes of type repertoire)
- bias_vol - likelyhood that a given bias value will change on this timestep. (in 0.01%) (valid only for attributes of type repertoire)
- walk - during evolution a particular bias value can only change by +1 or -1 during one
timestep
- jump - during evolution a particular bias value can change to any possible value during one timestep
More examples
attribute "immutable"
type bool
default false
end
attribute "cache"
type repertoire
walk
size 20
bias_max 2
bias_min -2
bias_vol 500
default empty
end
Related
See also About Ps-i 2.0, Agent classes.