Last chance! 50% off unlimited learning
Sale ends in
A container class with results from executing a (repetition of) test problem(s).
Objects can be created by calls of the form new("test.result",
...)
, but the object is normally provided as the result of executing
psoptim
on an object of class "test.problem"
.
problem
:Object of class "test.problem"
.
result
:A list with each of the results from
repetitive invocation of psoptim
on problem
.
time
:The overall time taken for executing the test.
Object of class "numeric"
.
signature(object = "test.result")
:
internal method used to calculate the success rate for a series of
test results. See getSuccessRate-methods
for details.
signature(x = "test.result")
: add lines with the
test result to an existing plot. See lines-methods
for details.
signature(x = "test.result", y = "missing")
: plot
the test result. See plot-methods
for details.
signature(x = "test.result")
: add points with
the test result to an existing plot. See points-methods
for details.
signature(object = "test.result")
: summary
statistics of the test. See show-methods
for details.
# NOT RUN {
showClass("test.result")
set.seed(1)
t <- test.problem("rastrigin",10)
o <- psoptim(t)
show(o)
# }
# NOT RUN {
plot(o)
# }
Run the code above in your browser using DataLab