plotFit: Plot the evolution of an optimisation

Description Usage Arguments Value Author(s) See Also Examples

Description

This function takes in the results of an optimisation by gaBinaryT1 and plots the evolution of best fit and average fit against generations.

Usage

1
plotFit(optRes, filename = NULL)

Arguments

optRes

an object created by the optimisation engine (gabinaryT1)

filename

NULL or string: if provided, the plot is save in PDF format in the filename.

Value

This function doesn't return anything, it just produces a plot in your graphics window.

Author(s)

C. Terfve

See Also

gaBinaryT1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(CNOlistToy,package="CellNOptR")
data(ToyModel,package="CellNOptR")

#process the model
model = preprocessing(CNOlistToy,ToyModel)

#optimise

ToyT1opt<-gaBinaryT1(
	CNOlist=CNOlistToy,
	model=model,
	maxGens=10,
	popSize=10,
	verbose=FALSE)

plotFit(optRes=ToyT1opt)


Search within the CellNOptR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.