Skip to content

ProvideQ/toolbox-python-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Important Notice: The Python API will overgo drastical change within the next month as part of our initiative of designing a Domain Specific Language for Meta-Solver Strategies.

Toolbox Python API

This python script can be used as library to automatically invoke the ProvideQ API. You can use this to solve any kind of problem with a set of pre-defined solvers.
For more information how to use the API, see the ProvideQ wiki.

Example

api = ProvideQApi("https://api.provideq.kit.edu")

# Solvers for subroutines
solver_per_type = {
    "cluster-vrp": lambda: "edu.kit.provideq.toolbox.vrp.clusterer.TwoPhaseClusterer",
    "tsp": lambda: "edu.kit.provideq.toolbox.tsp.solvers.LkhTspSolver"
}

# Set settings for per solver
settings_per_solver_id = {
    "edu.kit.provideq.toolbox.vrp.clusterer.KmeansClusterer": lambda: [
        {
            "name": "Cluster Number",
            "type": "INTEGER",
            "required": False,
            "description": "",
            "min": 1,
            "max": 1000,
            "value": 3,
        }
    ],
}

api.solve("vrp", "<some_vrp_input>", "edu.kit.provideq.toolbox.vrp.solvers.ClusterAndSolveVrpSolver", solver_per_type, settings_per_solver_id)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages