Client of the optimisation framework UQO
Project description
Installation
- Create a new python project on your machine (lets say you named it "my_project")
- Clone this repository into you project folder (git clone https://github.com/QAR-Lab/uqclient.git)
Your folder structure should look like this now:
my_project/ uqclient/
Now you have two possibilities:
-
[Not recommended, but easy to start with]: Go to uqclient -> main_prototype.py and add your token there, uncomment an example and start
-
[RECOMMENDED]: Create a main.py in the my_project folder and copy/paste the content of the main_prototype.py inside of the uqclient package to the main.py you just created
my_project/ uqclient/ main.py
With this method you should not modify any files inside the uqclient package. Just copy the code you need to python files YOU create inside the my_project folder.
Config
In order to connect to the UQ servers you need to specify an auth method, auth credentials and the endpoint (server ip + port). This is done by creating a config object.
There are two ways of creating a config object:
-
Create the config object directly in the code:
ip = "UQ-Server IP" token = "your_token" config = Config(method="token", credentials=token, endpoint=ip)
-
Use a config file
The UQ repository contains a config_prototype.json. Just copy it from the uqclient package somewhere else (e.g. into your project folder), change the token inside the copied config file and create the config object like this:
config = Config(config_path="Path\to\the\configfile")
FAQ
Python Version / Packages
- Python 3.7
- Module dimod version 0.8.17
Error messages while solving
If you try to solve a problem with UQ you might run into problems. Please consider updating ALL your python packages that are relevant for UQ. After you have done this, verify that your code is correct. If you still encounter problems, you can contact me (sebastian.zielinski@ifi.lmu.de) and I will try to help you with your problem.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for uqoclient-1.0.1-1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9fa1539e609571462a67cf4ba49fbb65b653811f4ba9f6babf1e8c25e4e729b |
|
MD5 | 1266263fe55e17ad5ead0cf428a2a8ac |
|
BLAKE2b-256 | 40817d9f4cc590c00d30b2dc21bd38fd2aba9ded9565f1e81397d915dfa44109 |