Description Usage Arguments Value Examples
to solve an initialized lp object iteratively
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,
...
)
|
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. |
the solved lp object; if forms are successfully built, they can be found from formList, consSummaryList, and formSummaryList under lp_obj.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.