Description Usage Arguments Details Value Maintainer See Also
Searches for a submatrix of maximal sum using a Constraint
Programming with Global Constraint approach.
See Details
section for informations on the search
performed and the criterion required to complete it.
1 2 3 4 5 | mssm.search.cpgc(x, budget = 10, convergence = "time",
verbose = FALSE, lowerBound = 0, lightFilter = FALSE,
variableOrdering = NULL, lns = FALSE, lns.nRestarts = 100,
lns.failureLimit = 500, lns.maxDiscrepancy = 2,
lns.restartFilter = 70)
|
x |
a matrix or a Java two-dimensionnal array of double ( |
budget |
a limit to prevent long searches.
Its value is used in combination with parameter |
convergence |
indicates criterions to abort the search. It can be any of the following:
|
verbose |
indicates whether improving solutions should be printed or not. |
lowerBound |
is the expected minimum sum ot the submatrix to
find. No submatrix with sum below |
lightFilter |
reduces the computational cost of pruning the
search tree at the expense of a reduced filtering (if |
variableOrdering |
is an ordering of the columns indices. It
indicates which columns should be considered first for the branching.
A |
lns |
allows the use of a large neighborhood search: after a
given number |
lns.nRestarts |
is the number of restarts to perform if |
lns.failureLimit |
is the number of backtracks allowed for each large neighborhood search. |
lns.maxDiscrepancy |
is a limite on the number of discrepancies.
In the search tree, a discrepancy is counted whenever one explores the
right child of a node. Small values prevent the search of the full
tree but visit only the left-most branches. This should be considered
when you are confident with the variable ordering (see parameter
|
lns.restartFilter |
is the percentage of the columns of the best
solution found so far to keep in subsequent search. More precisely, at
each lns restart, |
This function performs the search of a submatrix of maximal sum
accordingly to its arguments.
A submatrix is a rectangular, non-necessarily contiguous, subset of rows
and of columns of a (larger) matrix.
A submatrix is of maximal sum if the sum of its entires (selected from
the original matrix) is of maximal sum.
The search is completed whenever it finds a provably optimal solution.
If parameter lns
is TRUE
, the search is completed whenever the
lns.nRestarts
restarts have been done.
For some scenarios, one might wants to abort the search before completion.
This is doable through the combination of parameters budget
and convergence
.
A submatrix of maximal sum, represented as a list, with the associated sum, columns and rows.
Vincent Branders <vincent.branders@uclouvain.be>.
mssm.asJavaMatrix()
and mssm.loadMatrix()
to transform
a matrix to a Java matrix and to load a Java matrix from a file. See
also mssm.getHeuristicReordering()
for an heuristic ordering of the
columns. See also package mssm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.