sdom.get_default_solver_config_dict#

sdom.get_default_solver_config_dict(solver_name='cbc', executable_path='.\\Solver\\bin\\cbc.exe')[source]#

Generate a default solver configuration dictionary with standard SDOM settings.

Creates a pre-configured dictionary for solver initialization with recommended settings for SDOM optimization problems. Includes solver options and solve keywords for controlling optimization behavior.

Parameters:
  • solver_name (str, optional) – Solver to use. Supported values: - ‘cbc’: COIN-OR CBC open-source MILP solver (requires executable_path) - ‘highs’: HiGHS open-source MILP solver (uses appsi interface) - ‘xpress’: FICO Xpress commercial solver (uses direct interface) Defaults to ‘cbc’.

  • executable_path (str, optional) – Path to solver executable file. Required for CBC solver. Defaults to ‘.Solverbincbc.exe’.

Returns:

Configuration dictionary with keys:
  • ’solver_name’ (str): Solver identifier for SolverFactory

  • ’executable_path’ (str): Path to executable (CBC only)

  • ’options’ (dict): Solver options (mip_rel_gap, etc.)

  • ’solve_keywords’ (dict): Arguments for solver.solve() call (tee, load_solutions, logfile, timelimit, etc.)

Return type:

dict

Notes

Default MIP relative gap is 0.002 (0.2%). Log output is written to ‘solver_log.txt’. Solution loading and timing reports are enabled by default. HiGHS uses ‘appsi_highs’ interface for better performance.