68 pif = (-384.0*mu*mu + 134.0*mu);
70 f <<
dot(x1) == mu*x1;
71 f <<
dot(x2) == -sigma*x1 + u*
Csin;
72 f <<
dot(x3) == pif*x1;
74 f <<
dot(x5) == 0.001*(u*u + 0.01*tf*tf);
78 OCP ocp( 0.0, tf, 50 );
120 algorithm.
getWeights(
"fed_batch_bioreactor2_nnc_weights.txt");
122 algorithm.
getAllControls(
"fed_batch_bioreactor2_nnc_controls.txt");
132 window1.
addSubplot( paretoFront,
"Pareto Front (yield versus productivity)",
"-PRODUCTIVTY",
"-YIELD",
PM_POINTS );
returnValue print(std::ostream &stream=std::cout, const char *const name=DEFAULT_LABEL, const char *const startString=DEFAULT_START_STRING, const char *const endString=DEFAULT_END_STRING, uint width=DEFAULT_WIDTH, uint precision=DEFAULT_PRECISION, const char *const colSeparator=DEFAULT_COL_SEPARATOR, const char *const rowSeparator=DEFAULT_ROW_SEPARATOR) const
virtual returnValue solve()
DMatrix getWeights() const
virtual returnValue plot(PlotFrequency _frequency=PLOT_IN_ANY_CASE)
#define USING_NAMESPACE_ACADO
Provides a time grid consisting of vector-valued optimization variables at each grid point...
returnValue subjectTo(const DifferentialEquation &differentialEquation_)
returnValue minimizeMayerTerm(const Expression &arg)
returnValue addSubplot(PlotWindowSubplot &_subplot)
returnValue set(OptionsName name, int value)
returnValue getAllControls(const char *fileName) const
returnValue getParetoFront(VariablesGrid &paretoFront) const
Data class for defining optimal control problems.
Expression dot(const Expression &arg)
virtual returnValue solveSingleObjective(const int &number)
User-interface to formulate and solve optimal control problems with multiple objectives.
returnValue getAllDifferentialStates(const char *fileName) const
Provides an interface to Gnuplot for plotting algorithmic outputs.
returnValue getAllParameters(const char *fileName) const
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.