Skip to content

Commit

Permalink
Update test-g05-solver_tests.R
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaras committed Jun 30, 2024
1 parent 19a403c commit 477b36f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-g05-solver_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ test_that("Test a simple geometric program", {
y <= 2*x,
z >=1)
prob <- Problem(Maximize(obj), constraints)
for(solver in c("ECOS", "SCS", "CLARABEL")){
## Leave out CLARABEL for now
for(solver in c("ECOS", "SCS")){
result <- solve(prob, solver=solver, gp=TRUE)
expect_equal(result$value, 2, tolerance=TOL)
expect_equal(result$getValue(x), 1, tolerance=TOL)
Expand Down

0 comments on commit 477b36f

Please sign in to comment.