Optimisation

Submodules

Platypus (pywr.optimisation.platypus)

Pygmo (pywr.optimisation.pygmo)

class pywr.optimisation.pygmo.PygmoWrapper(pywr_model_json, *args, **kwargs)

Bases: pywr.optimisation.BaseOptimisationWrapper

fitness(solution)
get_bounds()

Return the variable bounds.

get_nec()
get_nic()
get_nobj()

Module contents

class pywr.optimisation.BaseOptimisationWrapper(pywr_model_json, *args, **kwargs)

Bases: object

A helper class for running pywr optimisations with platypus.

customise_model(model)
make_model()
property model
property model_constraints
property model_objectives
property model_variable_map
property model_variables
class pywr.optimisation.ModelCache

Bases: object

pywr.optimisation.cache_constraints(model)
pywr.optimisation.cache_objectives(model)
pywr.optimisation.cache_variable_parameters(model)
pywr.optimisation.clear_global_model_cache()

Clear the module level model cache.