public void Init()
        {
            _reader = new LinearProgramDictionaryReader();

            var analyze = new SimpleAnalyzeEnteringLeavingVariables();
            var pivotor = new HackyPivot2();

            _solver = new LinearProgramSolverWeek2(analyze, pivotor);
        }
Exemple #2
0
        public void Init()
        {
            _reader = new LinearProgramDictionaryReader();

            var analyze      = new SimpleAnalyzeEnteringLeavingVariables();
            var pivotor      = new HackyPivot2();
            var primalToDual = new HackyMapPrimalToDual();
            var dualToPrimal = new HackyMapDualToPrimal();
            var restore      = new SimpleRestoreObjective();

            _solver = new LinearProgramSolverWeek3(analyze, pivotor, primalToDual, dualToPrimal, restore);
        }