File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ test_that("test AMPL", {
8383 expect_equal(ampl $ getSets()$ S $ name(), " S" )
8484 expect_equal(ampl $ getParameters()$ l $ name(), " l" )
8585
86+ ampl $ setOption(" solver" , " gurobi" )
8687 ampl $ solve()
8788 expect_equal(ampl $ getObjective(" obj" )$ value(), 5 )
8889
Original file line number Diff line number Diff line change @@ -3,37 +3,37 @@ context("Test examples")
33test_that(" test dietmodel.R" , {
44 setwd(" ../../examples/" )
55 source(" dietmodel.R" )
6- dietmodel()
6+ dietmodel(" gurobi " )
77})
88
99test_that(" test firstexample.R" , {
1010 # setwd("../../examples/")
1111 source(" firstexample.R" )
12- firstexample()
12+ firstexample(" gurobi " )
1313})
1414
1515test_that(" test efficientfrontier.R" , {
1616 # setwd("../../examples/")
1717 source(" efficientfrontier.R" )
18- efficientfrontier()
18+ efficientfrontier(" gurobi " )
1919})
2020
2121test_that(" test multidimensional.R" , {
2222 # setwd("../../examples/")
2323 source(" multidimensional.R" )
24- multidimensional()
24+ multidimensional(" gurobi " )
2525})
2626
2727test_that(" test optionsexample.R" , {
2828 # setwd("../../examples/")
2929 source(" optionsexample.R" )
30- optionsexample()
30+ optionsexample(" gurobi " )
3131})
3232
3333if (Sys.getenv(" SKIP_BIG_TESTS" ) != " 1" ) {
3434 test_that(" test trackingmodel.R" , {
3535 # setwd("../../examples/")
3636 source(" trackingmodel.R" )
37- trackingmodel()
37+ trackingmodel(" gurobi " )
3838 })
3939}
You can’t perform that action at this time.
0 commit comments