Mordicus.IO.SolverDataset module

class SolverDataset(producedObject, solver, inputData)[source]

Bases: object

Gathers all data to be provided to a SolvingProcedure

producedObject

class of produced python object (after callback is called)

Type:

cls

solver

solver object associated with the dataset

Type:

SolvingProcedure

inputData

dictionary of all parameters to be passed to the calling procedure

Type:

dict

ExtractResult(extract=None, solutionStructures=None, primalities=None, solutionReaderType=None)[source]

Calls constructor of object to import the file into a data structure

Parameters:
  • extract (tuple(str)) – identifier of the solutions to extract (e.g. “U”, “sigma”…)

  • solutionStructures (dict) – dict with solution name as key and solutionStructure as argument

  • primalities (dict) – dict with solution name as key and solutionStructure as argument

  • solutionReaderType (type) – specific solution reader to use

Instantiate(**kwargs)[source]

Instantiate a template dataset. Replace parameters in file by their values

Run(**kwargs)[source]

Executes the dataset with its solver