R/socc.R

Defines functions socc

Documented in socc

##
## Function for creating 'SOCC' objects 
socc <- function(F, g, d, f){
    G <- matrix(0, nrow = nrow(F) + 1, ncol = ncol(F))
    G[1, ] <- -d
    G[-1, ] <- -F
    h <- matrix(c(f, g), ncol = 1)   
    return(list(conType = "SOCC", G = G, h = h, dims = nrow(G)))    
}

Try the cccp package in your browser

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

cccp documentation built on Dec. 10, 2023, 3:04 a.m.