dwave-examples / template

A template for code examples on this account. See for details on contribution guidelines.
Apache License 2.0
25 stars 42 forks source link
getting-started

Interested in contributing a code example?

Please take a look at our contribution guidelines before getting started. Thanks!

Describe your example and specify what it is demonstrating. Consider the following questions:

A clear description allows us to properly categorize your example.

Images are encouraged. If your example produces a visualization, consider displaying it here.

D-Wave Logo

Usage

A simple command that runs your program. For example,

python <demo_name>.py

Inputs

If your example requires user input, make sure to specify the input format and any input limitations.

Outputs

An example program output.

Problem Description

Objectives to be optimized: the goals the process attempts to accomplish by minimizing or maximizing certain aspects of the problem to the extent possible; for example, a production-line optimization might attempt to minimize the time to produce all of the products.

Constraints: aspects of the problem and/or process, with limited or no flexibility, that must be satisfied for solutions to be considered feasible; for example, a production-line optimization might have a limitation that Machine A can only bend 10 parts per hour.

Model Overview

The clearer your model is presented here, the more useful it will be to others. For a strong example of this section, see here.

Parameters

List and define the parameters used in your model.

Variables

List and define (including type: e.g., "binary" or "integer") the variables solved for in your model.

Expressions

List and define any combinations of variables used for easier representations of the models.

Objective

Mathematical formulation of the objective described in the previous section using the listed parameters, variables, etc.

Constrains

Mathematical formulation of the constraints described in the previous section using the listed parameters, variables, etc.

Code Overview

A general overview of how the code works.

We prefer descriptions in bite-sized bullet points:

Code Specifics

Notable parts of the code implementation.

This is the place to:

Note: there is no need to repeat everything that is already well-documented in the code.

References

A. Person, "Title of Amazing Information", short link name

License

Released under the Apache License 2.0. See LICENSE file.