@@ -14,6 +14,7 @@ B <- Variable(2, 2, name='B')
1414C <- Variable(3 , 2 , name = ' C' )
1515
1616test_that(" Test basic LPs" , {
17+ skip_on_cran()
1718 if (" CBC" %in% installed_solvers()) {
1819 # TODO: This is a bug in the rcbc library.
1920 # prob <- Problem(Minimize(0), list(x == 2))
@@ -29,6 +30,7 @@ test_that("Test basic LPs", {
2930})
3031
3132test_that(" Test a basic LP" , {
33+ skip_on_cran()
3234 if (" CBC" %in% installed_solvers()) {
3335 prob <- Problem(Minimize(p_norm(x , 1 )), list (x == 0 ))
3436 result <- solve(prob , verbose = FALSE , solver = " CBC" )
@@ -53,6 +55,7 @@ test_that("Test a basic LP", {
5355})
5456
5557test_that(" Test a basic MILP" , {
58+ skip_on_cran()
5659 if (" CBC" %in% installed_solvers()) {
5760 bool_var <- Variable(boolean = TRUE )
5861 int_var <- Variable(integer = TRUE )
@@ -85,6 +88,7 @@ test_that("Test a basic MILP", {
8588})
8689
8790test_that(" Test a hard knapsack problem" , {
91+ skip_on_cran()
8892 # # Instance "knapPI_1_50_1000_1" from "http://www.diku.dk/~pisinger/genhard.c"
8993 n <- 50
9094 c <- 995
@@ -119,6 +123,7 @@ test_that("Test a hard knapsack problem", {
119123})
120124
121125test_that(" Test that all CBC solver options work" , {
126+ skip_on_cran()
122127 prob <- Problem(Minimize(p_norm(x , 1 )),
123128 list (x == Variable(2 , boolean = TRUE )))
124129 if (" CBC" %in% installed_solvers()) {
0 commit comments