Optimisation - Invalid reporting time: 0 (less than or equal to zero)
Object-oriented equation-based modelling and optimisation software
Brought to you by:
ciroki
Hi,
I am trying to run a parameter otimization on a model. I have structured it similar to the chemeng optimization example 1. I am getting an error saying 'Invalid reporting time: 0 (less than or equal to zero). It also points to the 'run' function, which I have defined as the following:
> def run(**kwargs):
simulation = simModel1_Opt()
nlpsolver = pyIPOPT.daeIPOPT()
lasolver = pyTrilinos.daeCreateTrilinosSolver("Amesos_Klu", "")
relativeTolerance = 1e-6
reportingTimes = times.tolist()
return daeActivity.optimize(simulation, reportingInterval = 1,
timeHorizon = 14,
reportingTimes = reportingTimes,
lasolver = lasolver,
nlpsolver = nlpsolver,
nlpsolver_setoptions_fn = setOptions,
relativeTolerance = relativeTolerance,
reportSensitivities = True,
**kwargs)
I perhaps don't understand fully how the code works, but any help would be greatly appreciated. I have also attatched the full code.
Thank you in advance.
Anonymous
Hi,
Reporting times include points in time where the results should be reported next (after initialisation at t=0). Just don't include 0 and it should be ok.
Dragan