Skip to content
/ template Public template

A template for code examples on this account. See for details on contribution guidelines.

License

Notifications You must be signed in to change notification settings

dwave-examples/template

Repository files navigation

Interested in contributing a code example?

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

<demo_name>

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

  • Is it pedagogical or a usable application?
  • Does it belong to a particular domain such as material simulation or logistics?
  • What level of Ocean proficiency does it target (beginner, advanced, pro)?

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:

  • Here's an example bullet point

Code Specifics

Notable parts of the code implementation.

This is the place to:

  • Highlight a part of the code implementation
  • Talk about unusual or potentially difficult parts of the code
  • Explain a code decision
  • Explain how parameters were tuned

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.

About

A template for code examples on this account. See for details on contribution guidelines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages