powered by
Returns the problem's objective.
objective(x)
A Minimize or Maximize object.
A Problem object.
Problem objects are immutable: the objective cannot be modified after construction. To change the objective, create a new Problem().
Problem()
Problem(), constraints()
constraints()
x <- Variable(2) prob <- Problem(Minimize(sum_entries(x)), list(x >= 1)) objective(prob)
Run the code above in your browser using DataLab