#################################################################
##  CS 6901 (Fall 2026), Programming Problem #1                ##
##  Program File Name: CSTMSC.py                               ##
##       Student Name: Todd Wareham                            ##
##         Login Name: harold                                  ##
##              MUN #: 8008765                                 ##
#################################################################

## Main program for Programming Problem #1.
##
##      *** DO NOT CHANGE THE CODE IN THIS FILE ***
##

import sys
from myCSTMSCClasses import *
from myCSTMSCFunctions import *



def main():
   if (len(sys.argv) != 2):
      print("format: CSTMSC <filename>")
      exit(1)

   print("\n>>> Problem Description:\n")
   problem = Problem(sys.argv[1])
   problem.printDesc()
   solution = Solution(problem)
   optVal = DFSIOptVal(1, solution)
   print("\n>>> Optimal value = " + str(optVal))
   optSolNum = [0,]
   DFSIOptSol(1, optVal, optSolNum, solution)
   print("\n>>> " + str(optSolNum[0]) + " optimal solutions\n")


main()

