to_solve_cont: to solve an initialized lp object iteratively

Description Usage Arguments Value Examples

Description

to solve an initialized lp object iteratively

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
to_solve_cont(
  lp_obj,
  block_within_forms = T,
  block_across_forms = T,
  maxOverlapRate = 0.8,
  max_usage = 1,
  timeout = NULL,
  solver = NULL,
  gap = NULL,
  maxIter = 10,
  exist_n_iter = 0,
  verbose = T,
  ...
)

Arguments

block_within_forms

default is T.

block_across_forms

default is T.

maxOverlapRate

the maximum overlap rate between the new solution and the blocked solution. The maximum number of overlapping items is a rounded integer of maxOverlapRate * number of items per form.

max_usage

the maximum item usage in maxIter

timeout

default is 60 seconds

solver

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

gap

absolute MIP gap with default = 0

maxIter

maximum number of iterations

exist_n_iter

the number of existing iterations

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
  example_name = "MST08_tiny"
  solver = "cbc"
  timeout = 60
  gap = 0
  verbose = TRUE
  maxIter = 4
  maxOverlapRate = .50
  lp_obj2 = myFormAssembler::run_example(example_name, T, timeout, solver, gap, verbose)
  lp_obj2 = to_solve_cont(lp_obj2, block_within_forms = T, block_across_forms = T, maxOverlapRate = maxOverlapRate, timeout = timeout, solver = solver, maxIter = maxIter, gap = gap)

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