﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4976	Optimization objective missing	massimo ceraolo	Vitalij Ruge	"If we follow the instructions in the OpenModelicaUsersGuide, chapter 8, we can reproduce the users's guide plots for Batch Reactor optimisation run.

However there is something strange. 
I created as prescribed a file ""nmpcBatchReactor.mo"" containing:
{{{
optimization nmpcBatchReactor(objective=-x2)
extends BatchReactor;
end nmpcBatchReactor;
}}}
But if I make

{{{
loadFile(""nmpcBatchReactor.mo"")
list(nmpcBatchReactor)
}}}
I get:

{{{
""optimization rmpcBatchReactor
  extends BatchReactor;
end rmpcBatchReactor;""
}}}
To the optimization objective is not shown. Also looking at the optimization output log, I cannot find indication that OMC has really minimised -x2 (this must be inferred from analysis of the plots).

So I see two issues here:
1) list does not show the optimisation objective
2) record SimulationResult and following log do not show the optimisation objective as well.

"	defect	new	low	Future	Optimization				
