da_take_or_leave: Create exercise about taking or leaving special orders

Description Usage Arguments Value

View source: R/da_take_or_leave.R

Description

Create exercise about taking or leaving special orders

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
da_take_or_leave(
  vol = 1000,
  p = 10,
  uvc = 4,
  fc = 1000,
  chg_p = -1,
  chg_uvc = 1,
  chg_fc = 1,
  enough_cap = FALSE
)

Arguments

vol

Numeric. Volume of the normal product.

p

Numeric. Price of the normal product.

uvc

Numeric. Unit variable cost of the normal product.

fc

Numeric. Initial fixed costs.

chg_p

Numeric. -1 for decrease in price, 1 for an increase, 0 otherwise.

chg_uvc

Numeric. -1 for decrease in unit variable cost, 1 for an increase, 0 otherwise.

chg_fc

Numeric. 1 for an increase in fixed costs, 0 otherwise.

enough_cap

Logical. TRUE if the special order fits in available capacity.

Value

List. base, solution, wrong_nei, wrong_min_vol, wrong_max_vol, wrong_min_p


NicolasJBM/manacc documentation built on Jan. 16, 2020, 1:42 p.m.