close Warning: Can't synchronize with repository "(default)" (/var/svn/mms does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 15 years ago

Last modified 15 years ago

#187 closed defect

Carga de previsiones previamente guardadas — at Initial Version

Reported by: irobles Owned by: Pedro Gea
Priority: major Milestone: Persistence 0.5
Component: Persistence Keywords:
Cc:

Description

Cuando se guarda una prevision y luego se carga da los resultados de la

estimacion pero no los de la prevision.

Para probar esto, podemos ejecutar el código de matriculación de vehículos
y luego el siguiente codigo:


Text nameSubModel = "Veh.Tur.Mat__1.0__BSR";
Text outputName = "Veh.Tur.Mat";

Real MMS::CreateForecast([[
      Text _.name = nameSubModel;
      @MMS.Estimation _.estimation =  estBSR;
      @MMS.SettingsEstimate _.settings = [[
        Real _.showTraces = False
      ]]

    ]]);

    Date endEst = estBSR::GetModel_(?)::GetOutput(outputName)::GetLast(?);
    Date beginPrev = Succ(endEst,Mensual,1);
    Date endPrev = Succ(endEst,Mensual,20);

    Text name = estBSR::GetModel_(?)::GetName(?);
    Text version = estBSR::GetModel_(?)::GetVersion(?);
    @MMS.Forecast forecast =
      MMS::GetForecast([[name,version,nameSubModel]]);

    Real forecast::SetForecastInterval(?, beginPrev, endPrev);
    Real forecast::Execute(?);
    Real
forecast::Store(Ois.DefRoot+"MMS/Forecast/"+forecast::GetIndex(?)+".oza");

Despues abrimos otro tol y ejecutamos

Set
Include("C:/Users/usuario/bsd/mms/MMS_0.5/samples/MLG_Logit_barometroSalud/funPrj.tol");

Real
MMS::LoadFile(Ois.DefRoot+"MMS/Forecast/Mat.Veh__1.0__Veh.Tur.Mat__1.0__BSR.oza");

Cambiando usuario por el nombre del usuario correspondiente

Gracias,
Un cordial saludo

Change History (0)

Note: See TracTickets for help on using tickets.