hi_solver_set_objective | R Documentation |
This function assigns a coefficient to a variable in the objective function.
hi_solver_set_objective(solver, index, coeff)
solver |
An object of class "highs_solver". |
index |
The variable index. |
coeff |
A numeric value representing the objective coefficient. |
The solver instance with the updated objective.
solver <- example_solver()
hi_solver_set_objective(solver, 2, 3.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.