Package org.ddolib.examples.mcp
Class MCPDdoMain
java.lang.Object
org.ddolib.examples.mcp.MCPDdoMain
Main class for solving the Maximum Cut Problem (MCP) using a DDO (Decision Diagram Optimization) approach.
This class demonstrates how to set up a DDO model for the MCP, execute the search, and print the resulting solutions and statistics.
The problem instance can be provided as a command-line argument. If no argument is provided,
a default instance located at data/MCP/mcp_5_2.txt is used.
The model uses MCPRelax for state relaxation, MCPRanking for state ranking,
and MCPFastLowerBound for computing fast lower bounds. The DdoModel framework
handles the search process using DDO.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MCPDdoMain
public MCPDdoMain()
-
-
Method Details
-
main
Entry point of the application.Initializes the MCP problem, builds a DDO model, and runs the search to find a maximum cut. The resulting solutions are printed incrementally via
SolutionPrinterand a finalSearchStatisticssummary is displayed.- Parameters:
args- optional command-line arguments; args[0] can specify the path to an MCP instance file- Throws:
IOException- if the instance file cannot be read
-