Solve a Resource Allocation Model with Mixed Constraints

solve_ram(model, direction = "max")

Arguments

model

A 'ram_model' object as returned by create_ram_model().

direction

"max" to maximize the objective, "min" to minimize (default: "max").

Value

A list with:

optimal_activities

Named vector of optimal activity levels

objective_value

Optimal value of the objective function

status

Status code from lpSolve (0 = success)