mat: a vector or a matrix of the constraint coefficients
dir: a character vector with the directions of the constraints. Each element must be one of "<=", "==" or ">=".
rhs: the right hand side of the constraints
bounds: NULL (default) or a list with elements upper and lower containing the indices and corresponding bounds of the objective variables. The default for each variable is a bound between 0 and Inf.
types: a character vector giving the types of the objective variables, with "C", "I", and "B" corresponding to continuous, integer, and binary, respectively, or NULL
(default), taken as all-continuous. Recycled as needed.
max: a logical giving the direction of the optimization. TRUE means that the objective is to maximize the objective function, FALSE (default) means to minimize it.
verbosity: an integer defining the level of verbosity, -2 (default) means no output.
time_limit: an integer defining the time limit in seconds, -1 (default) means no time limit.
node_limit: an integer defining the limit in number of iterations, -1 (default) means no node limit.
gap_limit: when the gap between the lower and the upper bound reaches this point, the solution process will stop and the best solution found to that point will be returned, -1 (default) means no gap limit.
first_feasible: a logical defining if the solution process should stop after the first feasible solution has been found, FALSE (default) means that the solution process does not stop after the first feasible solution has been found.
write_lp: a logical value indicating if an LP representation of the problem should be written for debugging purposes, FALSE (default) means no LP file is written.
write_mps: a logical value indicating if an MPS representation of the problem should be written for debugging purposes, FALSE (default) means no MPS file is written.
Details
SYMPHONY is an open source solver for solving mixed integer linear programs (MILPs). The current version can be found at https://projects.coin-or.org/SYMPHONY. Package Rsymphony
uses the C interface of the callable library provided by SYMPHONY, and supplies a high level solver function in R using the low level C interface.
Returns
A list containing the optimal solution, with the following components. - solution: the vector of optimal coefficients
objval: the value of the objective function at the optimum
status: an integer with status information about the solution returned: 0 if the optimal solution was found, a non-zero value otherwise.