to_solve_panels: solve an initialized LP object with multiple panels

Description Usage Arguments Value Examples

Description

The constraints are specified for one panel. Then, the constraints are extended internally based on num_panels.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
to_solve_panels(
  lp_obj,
  num_panels,
  timeout = NULL,
  solver = NULL,
  gap = NULL,
  verbose = T,
  across_form_max_item_usage_count = NULL,
  form_skip_usage_count = NULL,
  save_to_file = NULL
)

Arguments

num_panels

the number of panels desired.

timeout

default is 60 seconds

solver

"cbc" (default), "symphony", "glpk" and "lpsolve".

gap

absolute MIP gap with default = 0

verbose
lpObj

the LP object that has been initialized and is ready to be solved.

Value

the solved lp object; if forms are successfully built, they can be found from formList, consSummaryList, and formSummaryList under lp_obj.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
example_name = "MST08_tiny"
num_panels = 15
solver = "cbc"
timeout = 60
gap = 0
verbose = TRUE
lp_obj = myFormAssembler::run_example(example_name, T, timeout, solver, gap, verbose)
lp_obj$output = NULL
lp_obj$x = NULL
lp_obj = to_solve_panels(lp_obj, num_panels, timeout, solver, gap, verbose, across_form_max_item_usage_count = 5)

yuehmeir2/myFormAssembler documentation built on June 9, 2021, 3:42 a.m.