| trade.optimizer.control {PortfolioProbe} | R Documentation |
Sets parameters that control the optimization algorithm in
trade.optimizer (and hence in random.portfolio.utility).
trade.optimizer.control(iterations.max = 20, fail.iter = 0, funeval.max = .Machine$integer.max, trace = TRUE, exit.obj = -big, runs.init = 3, runs.final = 2, runs.min = 1, stringency = 0, nonconverge.mult = 2, feasible = 0, miniter = 0, force.risk.aver = FALSE, enforce.max.weight = TRUE, save.iterhistory = FALSE, safe.mode = TRUE, ...)
iterations.max |
integer giving the maximum number of iterations to perform in a run. |
fail.iter |
integer giving the maximum number of consecutive iterations that
fail to improve the solution without the algorithm stopping and
declaring that convergence has been achieved.
For example, if |
funeval.max |
integer giving the maximum number of function (portfolio) evaluations to perform. The most common use of this is to set it to one or zero when you have a specific trade that you would like to have done. |
trace |
logical value.
If |
exit.obj |
number such that the optimization terminates if the best solution has
an objective at least as good (i.e., an objective smaller than
or equal to |
runs.init |
if |
runs.final |
if |
runs.min |
if |
stringency |
an integer giving one less than the number of runs that need
to match as the best solution before the optimization is exited.
If |
nonconverge.mult |
if |
feasible |
if all constraints are not met at the end of the iteration equal to
the value of |
miniter |
the minimum number of iterations to be performed in a run even
if |
force.risk.aver |
logical value which is only used when the |
enforce.max.weight |
logical value; if |
save.iterhistory |
logical value; if |
safe.mode |
logical value; if |
... |
there are additional arguments that make this function compatible 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. |
This help was last revised 2012 April 17.
trade.optimizer,
random.portfolio.utility,
random.portfolio.control.
my.to.control <- trade.optimizer.control(iterations=100, fail=5, stringency=1, runs.init=5, runs.final=3) trade.optimizer(eq.prices, varian, control=my.to.control)