Beispiel #1
0
        public SimplexMethodSolver(DenseMatrix a, DenseVector b, DenseVector c, J0Strategy strategy = J0Strategy.Blend)
        {
            this.A = DenseMatrix.OfMatrix(a);
            this.b = DenseVector.OfVector(b);
            this.c = DenseVector.OfVector(c);

            this.Strategy = strategy;

            this.MeaningDecimals = 8;

            this.IsFirstPhaseNeeded = true;
        }
Beispiel #2
0
        public SimplexMethodSolver(DenseMatrix a, DenseVector b, DenseVector c,
            DenseVector startX, IEnumerable<int> startBaseJ, J0Strategy strategy = J0Strategy.Blend)
            : this(a, b, c, strategy)
        {
            this.StartX = DenseVector.OfVector(startX);
            this.StartBaseJ = new List<int>(startBaseJ);

            this.CurrX = DenseVector.OfVector(StartX);
            this.CurrBaseJ = new List<int>(StartBaseJ);

            this.IsFirstPhaseNeeded = false;
        }