Constraints on dependent variable Matlab

I am working on a Simulation-Optimization routine in Matlab. My program solves a set of Differential Algebraic Equations (DAEs) which depend on a set of design variables "x" and computes a cost function (objective function). The value of the objective function is passed to fmincon, which decides how to update "x", so constraints are fulfilled.
I was wondering if there is a way to recursively impose bounds not only to "x", but to internal variables. I have, for instance, a purity requirement in the process, which makes necessary to impose an inequality constraint on this variable. Purity does not belong to "x", but is a dependent variable resulting from the solution of the DAE system. I know that one can include penalty functions in the objective function to account for these constraints, but I would want to know if there is a way to make this internal variables "visible" to the optimizer, so it runs according to bounds or inequality conditions on them.

1 Commento

The dependent variables are uniquely determined by the DAE system and the more or less free control variables. So you will have to adjust the control variables over time in such a way that e.g. the purity requirement is fulfilled. This is achieved - as you already mentioned - by including a penalty term in the objective function for possible deviances.
Best wishes
Torsten.

Accedi per commentare.

Risposte (1)

Alan Weiss
Alan Weiss il 30 Lug 2015
Modificato: Alan Weiss il 24 Lug 2018
Yes, you can impose any constraints you like by using a nonlinear inequality constraint function. Since this function comes from the objective function calculation, you can save time by using this technique.
Alan Weiss
MATLAB mathematical toolbox documentation

2 Commenti

Unfortunately, those links are broken.
Sorry about that, I just corrected them.
Alan Weiss
MATLAB mathematical toolbox documentation

Accedi per commentare.

Richiesto:

il 29 Lug 2015

Commentato:

il 24 Lug 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by