Пример #1
0
        private static void lpProblemPhase(InputParser inputParser, int serverNO, int pointNO, double delta,
            int binNO, int[] binHefts, double explicitLimit, LPModelFileCreator lpModelFileCreator, LPSolver lpSolver)
        {
            int timeoutSec = inputParser.parseInputTimeout();
            bool deleteOutputLP = inputParser.parseInputDeleteOutputLP();

            string outputFilename = lpModelFileCreator.createOutputLPFile(serverNO, binNO, pointNO,
                binHefts, delta, explicitLimit);

            lpSolver.solveLP(serverNO, binNO, binHefts, timeoutSec, outputFilename);

            if (deleteOutputLP)
            {
                File.Delete(outputFilename);
            }
        }