pylibmgm.build_sync_problem

pylibmgm.build_sync_problem(model: pylibmgm.MgmModel, solution: pylibmgm.MgmSolution, feasible: bool = True) pylibmgm.MgmModel

Build a synchronization problem from an MGM model and solution.

Constructs a new MGM model where the objective is to find a cycle-consistent solution close to the given (inconsistent) solution.

Parameters:
  • model (MgmModel) – Original MGM model.

  • solution (MgmSolution) – Initial solution (cycle-inconsistent).

  • feasible (bool, optional) – If True, only consider matchings present in the original model (default: True).

Returns:

Synchronization problem as an MGM model.

Return type:

MgmModel