Closed Peter230655 closed 6 months ago
There is no "violation" of the objective, there is just the value of the objective given the state and controls. The Problem
class stores the objective for each iteration. You can return the objective for any result with Problem.objective()
and you can access all of the objective values from each iteration with Problem.obj_value
. You can plot the objective value as a function of iteration value with Problem.plot_objective_value()
.
Thanks! I will try this.
As I learned, it is easy to get the violation of the state variables and of the final constraints: they are returned in info['g']. But how do I get the violations of the objective function / still better of each term in it?
As I recall, when I started with opty, there was a discussion on their plot routine, and @tjstienstra suggested a better version (?). Anyway, if I know where these values are, I can probably plot them
Thanks for any help!