Class ActiveSetSolver

    • Field Detail

      • myConstraintToInclude

        private int myConstraintToInclude
      • myExcluded

        private transient int[] myExcluded
      • myIncluded

        private transient int[] myIncluded
      • myInvQC

        private MatrixStore<java.lang.Double> myInvQC
      • myIterationX

        private final R064Store myIterationX
      • myShrinkSwitch

        private boolean myShrinkSwitch
    • Method Detail

      • handleIterationSolution

        private void handleIterationSolution​(R064Store iterX,
                                             int[] excluded)
      • shrink

        private void shrink()
      • suggestUsingLagrangeMagnitude

        private int suggestUsingLagrangeMagnitude()
      • suggestUsingVectorProjection

        private int suggestUsingVectorProjection()
      • countExcluded

        protected final int countExcluded()
      • countIncluded

        protected final int countIncluded()
      • exclude

        protected void exclude​(int indexToExclude)
      • getExcluded

        protected final int[] getExcluded()
      • getExcluded

        protected int getExcluded​(int indexAmongExcluded)
      • getIncluded

        protected final int[] getIncluded()
      • getIncluded

        protected final int getIncluded​(int indexAmongIncluded)
      • getLastExcluded

        protected final int getLastExcluded()
      • getLastIncluded

        protected final int getLastIncluded()
      • include

        protected void include​(int indexToInclude)
      • suggestConstraintToExclude

        protected int suggestConstraintToExclude()
        Find the minimum (largest negative) lagrange multiplier - for the active inequalities - to potentially deactivate.
      • suggestConstraintToInclude

        protected int suggestConstraintToInclude()
        Find minimum (largest negative) slack - for the inactive inequalities - to potentially activate. Negative slack means the constraint is violated. Need to make sure it is enforced by activating it.
      • toActivatorString

        protected final java.lang.String toActivatorString()
      • checkFeasibility

        boolean checkFeasibility()
      • getConstraintToInclude

        int getConstraintToInclude()
      • getSlackI

        MatrixStore<java.lang.Double> getSlackI​(int[] rows)
      • handleIterationResults

        void handleIterationResults​(boolean solved,
                                    R064Store iterX,
                                    int[] included,
                                    int[] excluded)
      • resetActivator

        void resetActivator()
      • setConstraintToInclude

        void setConstraintToInclude​(int constraintToInclude)