cost_function.set_static_context

cost_function.set_static_context(static_context: str | dict, **kwgs)[source]

set the cost static_context after the instantiation

Parameters:

static_context (str | dict) – saving dictionary or saving file name of a nrv_simulable object which should be use as static context of the optimisation