| random.portfolio.control {PortfolioProbe} | R Documentation |
Sets parameters that control the optimization of random.portfolio.
random.portfolio.control(iterations.max = 20, miniter = 5, fail.iter = 5, gen.fail = 4, init.fail = 4, throw.error = TRUE, lockcon = FALSE, enforce.max.weight = TRUE, trace = FALSE, save.iterhistory = FALSE, safe.mode = TRUE, ...)
iterations.max |
integer giving the maximum number of iterations to perform in a single try at a portfolio. |
miniter |
integer giving the minimum number of iterations to be tried in each
go even if |
fail.iter |
integer giving the maximum number of consecutive iterations that
fail to improve the solution without the algorithm stopping.
For example, if |
gen.fail |
integer limiting the total number of failures allowed in a call.
The maximum number of failures allowed is |
init.fail |
integer giving the number of failures allowed before the first success at finding a portfolio satisfying all the constraints. If the number of initial failures is violated, then it quits. |
throw.error |
logical value; if |
lockcon |
logical value; if |
enforce.max.weight |
logical value; if |
trace |
logical value.
If |
save.iterhistory |
logical value; if |
safe.mode |
logical value; if |
... |
additional arguments for compatibility with
|
a list with the following components:
icontrol |
vector of the integer-valued control parameters. |
dcontrol |
vector of the double precision control parameters. |
aux |
vector of the auxiliary control parameters. |
ERRORS.
Setting the throw.error argument to FALSE
can be useful when doing series of random portfolios, as
when imitating a backtest.
It can be the case that the desired constraints are
infeasible – you can relax some constraints if this
proves to be true and try again.
This help was last revised 2012 April 17.
random.portfolio,
random.portfolio.utility,
trade.optimizer.control.
# it is unlikely to be useful to call this function directly