Skip to main content

Client of the optimisation framework UQO

Project description

Installation


  1. Create a new python project on your machine (lets say you named it "my_project")
  2. 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:

  1. [Not recommended, but easy to start with]: Go to uqclient -> main_prototype.py and add your token there, uncomment an example and start

  2. [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:

  1. Create the config object directly in the code:

    ip = "will be announced via e-mail"
    token = "your_token"
    config = Config(method="token", credentials=token, endpoint=ip)
    
  2. 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

uqoclient-1.0.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distributions

uqoclient-1.0.0-py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 3

uqoclient-1.0-py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page