Skip to contents

Package

scip scip-package
scip: R Interface to the SCIP Optimization Suite

One-Shot Solver

Solve a complete problem in a single call

scip_solve()
Solve a linear or mixed-integer program using SCIP
scip_control()
SCIP solver control parameters

Model Construction

Build optimization models incrementally

scip_model()
Create a SCIP model
scip_add_var()
Add a variable to a SCIP model
scip_add_vars()
Add multiple variables to a SCIP model
scip_set_objective_sense()
Set objective sense

Constraints

Add constraints to a model

scip_add_linear_cons()
Add a linear constraint to a SCIP model
scip_add_quadratic_cons()
Add a quadratic constraint to a SCIP model
scip_add_sos1_cons()
Add a SOS1 constraint to a SCIP model
scip_add_sos2_cons()
Add a SOS2 constraint to a SCIP model
scip_add_indicator_cons()
Add an indicator constraint to a SCIP model

Solve and Query

Solve the model and retrieve results

scip_optimize()
Solve a SCIP model
scip_get_status()
Get solver status
scip_get_solution()
Get the best solution
scip_get_objval()
Get objective value of best solution
scip_get_nsols()
Get number of solutions found
scip_get_sol()
Get the k-th solution from the solution pool
scip_get_info()
Get solver information

Parameters and Cleanup

Configure solver parameters and free resources

scip_set_param()
Set a SCIP parameter
scip_model_free()
Free a SCIP model
print(<scip_control>)
Print method for scip_control objects
make_csc_matrix()
Convert a matrix to CSC (Compressed Sparse Column) format