hi_model_set_sense | R Documentation |
This function sets the sense of the optimization model to either maximization or minimization.
hi_model_set_sense(model, maximum)
model |
an object of class |
maximum |
a boolean value indicating whether the model should be set to maximization ('TRUE') or minimization ('FALSE'). |
NULL
model <- hi_new_model()
hi_model_set_sense(model, TRUE) # Set the model to maximization
hi_model_set_sense(model, FALSE) # Set the model to minimization
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.