Opened 14 years ago
Last modified 14 years ago
#800 new enhancement
Método para obtener las restricciones de un parámetro
| Reported by: | cgarcia | Owned by: | Pedro Gea |
|---|---|---|---|
| Priority: | major | Milestone: | Next |
| Component: | Parameters | Keywords: | MCombination, Combinacion, Parámetro, Restricción |
| Cc: |
Description
Sería muy útil tener un método en MMS que nos indicara todas las restricciones que tiene un parámetro (del parámetro y de sus posibles combinaciones). De esta manera sería mas fácil detectar restricciones que dan problemas a la hora de estimar.
Hemos creado una función que puede servir para este problema:
Set MComb_Param(NameBlock model, Text idParam)
{
Set mCombinations = model::GetMCombinations(?);
Set Select(mCombinations, Real(NameBlock mC)
{
Set param = mC::GetParameters(?);
idParam <: EvalSet(param, Name) //Text(NameBlock par) {paName}
})
};
Set MConst_Param(NameBlock model, Text idParam)
{
NameBlock paramConst = model::GetParameter(idParam)::GetConstraint(?);
Set combConst =
{
Set sMComb = MComb_Param(model, idParam);
Set EvalSet(sMComb, NameBlock(NameBlock mComb)
{ mComb::GetConstraint(?) });
sMComb
};
[[ paramConst ]] << combConst
};
Gracias y un saludo
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/mms/chrome/site/logomms.png)