View source: R/CommonMZNProblems.R
simple production planning problem taken from https://github.com/MiniZinc/minizinc-examples Goal is to maximize the profit
1 2 3 4 5 6 7 8 9 | production_planning(
nproducts,
profit,
pnames,
nresources,
capacity,
rnames,
consumption
)
|
nproducts |
number of different products |
profit |
profit for each product (1-D vector) |
pnames |
names of each product (1-D vector) |
nresources |
number of resources |
capacity |
amount of each resource available (1-D vector) |
rnames |
names of each resource (1-D vector) |
consumption |
units of each resource required to produce 1 unit of product (2-D vector to be provided as 1-D vector) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.