inst/test.intlinprog.R

f <- c(8, 1)
A <- matrix(c(-1, -2, -4, -1, 2, 1), nrow=3, byrow=TRUE)
b <- c(14, -33, 20)

sol <- intlinprog(f, c(1, 2), A, b)
sol <- intlinprog(f, NULL, A, b)

Try the modopt.matlab package in your browser

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

modopt.matlab documentation built on May 2, 2019, 12:40 p.m.