values{}
agents{}
interfaces{}
<<PERL
print "this is Perl code\n";
PERL
There is also a predefined object $Perkun2::Optimizer::optimizer that supports multiple callbacks called by Perkun2. For example this is how you can register a callback "print_prompt":
<<PERL
$$Perkun2::Optimizer::optimizer{print_prompt} = sub { print "Hello: "; };
PERL
Other callbacks are:
- execute
- on_action
- print_current_belief
- print_initial_loop_message
The Prolog generators created by the version 0.0.1 are modified so that they do not insert the model set instructions that would contain probability 0.0. This makes the generated specifications significantly smaller.