if (FALSE) {
solver_update(s, q = c(-4, -1)) # update linear objective only
solver_update(s, b = c(2, 2)) # update constraint RHS only
sol2 <- solver_solve(s) # re-solve with updated data
}
Run the code above in your browser using DataLab