I'm trying to implement a breadth-first search involving Clips environments. However, after moderate searches, PyClips is giving me the error "ClipsError: S06: maximum number of environments reached". How do I increase the maximum number of environments?
Are you sure this is the correct approach? You want to use an Environment (that is, a brand new CLIPS machine) as a dynamic structure? Please, read the manual where it mentions environments, and possibly the Advanced Programming Guide too…
However, you can change the maximum number of environment using the clips._clips.setMaxEnvironments() function (use help() to see its documentation), but just increasing the number of environments would, at best, raise the time where your software incurs in the same error, and at worst bail out with an "Out Of Memory" error (which would render, as usual, the Python interpreter unstable).
Thanks. Since I found I can't copy Environment objects, and have to recreate each new instance from scratch, my initial work around was to create a single global Environment object, store all the constructs for each env as a Python object and then load/unload these constructs to the global Environment as needed. I'd imagine it's taking up the same amount of space as it would if I just stored everything in separate Environment instances, but it gets the job done.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.