.onLoad <- function( libname, pkgname ) {
## Solver plugin name (based on package name)
if( ! pkgname %in% ROI_registered_solvers() ){
## Register solver methods here.
## One can assign several signatures a single solver method
solver <- ROI:::get_solver_name( pkgname )
ROI:::ROI_register_solver_method( signatures = ROI:::ROI_make_MILP_signatures(),
solver = solver,
method =
getFunction( "solve_OP", where = getNamespace(pkgname)) )
## Finally, for status code canonicalization add status codes to data base
.add_status_codes()
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.