Base

class paminco._base.Base(network: paminco.net.network.Network, name=None, callback=None, use_simple_timer: bool = True, copy_network: bool = True)[source]

Abstract solver class.

Parameters
networkNetwork

A network.

namestr, optional

Name of solver. If None (default), an automatic name will be generated.

callback(list of callable), optional

Will be called during initialization and run() with flags indicating the status of the algorithm.

use_simple_timerbool, default=True

Whether timestamps will be collected during initialization and run.

copy_networkbool, default=True

Whether to work on a copy of network.

Attributes
callbackslist

List of callbacks.

network

Get network obj.

name

Get name of object.