-
Notifications
You must be signed in to change notification settings - Fork 23
Writing new Optimizees
To create a new Optimizee, the currently recommended method is the following:
- Create an entirely separate repository for your Optimizee code (preferably under the IGITUGraz Github organization).
- Install the LTL package on your system following instructions below.
- Write your Optimizee using the LTL Optimizee interface as described in the documentation.
- Write your experiment using the Optimizers in LTL and their interfaces as described in the documentation.
If you're writing a new Optimizee and only want to use the Optimizers in the LTL package (and not modify them) you don't have to commit any changes into the LTL package.
From the Top-Level directory of the directory, run the following command:
python3 setup.py develop [--user]
The --user
flag is to be used if you wish to install in the user path as opposed
to the root path (e.g. when one does not have sudo access)
The above will install the package by creating symlinks to the code files in the relevant directory containing python modules. This means that you can change any of the code files and see the changes reflected in the package immediately (i.e. without requiring a reinstall). In order to uninstall one may run the following:
python3 setup.py develop --uninstall
Note that if the setup was done using sudo access, then the uninstall must also be done using sudo access
Having installed this package, we now have access to the top level ltl
module
which contains all the relevant modules relevant for using the ltl package.