K_augInterface

(class from pyomo.contrib.sensitivity_toolbox.k_aug)

class pyomo.contrib.sensitivity_toolbox.k_aug.K_augInterface(k_aug=None, dot_sens=None)[source]

Bases: object

k_aug and dot_sens store information in the user’s filesystem, some of which is mandatory for subsequent calls. This class ensures that calls to these executables happen in temporary directories. The resulting files are immediately read and cached as attributes of this object, and the temporary directories deleted. If we have cached files that can be used by a subsequent call to k_aug or dot_sens, we write them just before calling the executable, and they are deleted along with the temporary directory.

NOTE: only covers dsdp_mode for now.

__init__(k_aug=None, dot_sens=None)[source]

Methods

__init__([k_aug, dot_sens])

dot_sens(model, **kwargs)

k_aug(model, **kwargs)

set_dot_sens_options(**options)

set_k_aug_options(**options)

Member Documentation