R/matchVertCons.R

matchVertCons <-
function (fullhull)
{
    if (!is.null(fullhull[["affectedConstraints"]]))
        return(fullhull)
    gmat <- t(fullhull$a %*% t(fullhull$vertices) - fullhull$b)
    testmat <- (gmat == 0)
    dim(testmat) <- dim(gmat)
    affectedConstraints <- apply(testmat, 1, which)
    return(c(fullhull, list(affectedConstraints = affectedConstraints)))
}

Try the blackbox package in your browser

Any scripts or data that you put into this service are public.

blackbox documentation built on May 3, 2023, 9:13 a.m.