View source: R/257_zzz_R_specific_exports.R
| objective | R Documentation |
Returns the problem's objective.
objective(x)
x |
A Problem object. |
Problem objects are immutable: the objective cannot be modified after
construction. To change the objective, create a new Problem().
A Minimize or Maximize object.
Problem(), constraints()
x <- Variable(2)
prob <- Problem(Minimize(sum_entries(x)), list(x >= 1))
objective(prob)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.