Fit a hydromad model using the NSGA2 genetic algorithm from the mco package

fitByNsga2(
  MODEL,
  objective = hydromad.getOption("objective"),
  control = hydromad.getOption("nsga2.control")
)

Arguments

MODEL

a model specification created by hydromad. It should not be fully specified, i.e one or more parameters should be defined by ranges of values rather than exact values.

objective

objective function to maximise, given as a function(Q, X, ...). See objFunVal.

control

arguments for nsga2 function. See nsga2

Value

the best model from those sampled, according to the given objective function. Also, these extra elements are inserted:

fit.result

the result from SCEoptim.

objective

the objective function used.

funevals

Not currently implemented. Total number of evaluations of the model simulation function.

timing

timing vector as returned by system.time.

See also

nsga2

Author

Joseph Guillaume