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.

Ticket #1222: estimMms.tol

File estimMms.tol, 872 bytes (added by vdebuen, 9 years ago)
Line 
1#Require MMS;
2#Require ModelExcel;
3
4Set Var = { Include("var.oza") };
5Text Model_Session = "ModelDef.01.xls";
6Text PathMMS = "Estimations/"+Model_Session+".oza";
7
8Real _t0.buildingModel = Copy(Time);
9MMS::@Estimation Estimation = ModelExcel::BuildEstimation(Model_Session);
10
11
12MMS::@Model Modelo = Estimation::GetModel(?);
13
14Set SubModels = Modelo::GetSubmodels(?);
15
16Real _time.buildingModel = Copy(Time) - _t0.buildingModel;
17WriteLn("Time for building model "<<_time.buildingModel);
18
19Real _t0.estimatingModel = Copy(Time);
20
21Real Estimation::Execute(?);
22Real Estimation::SetVersion(""<<Now);
23
24Real _time.estimatingModel = Copy(Time) - _t0.buildingModel;
25WriteLn("Time for estimating model "<<_time.estimatingModel);
26
27Real _t0.savingModel = Copy(Time);
28
29Real MkDir(PathCurrent+"/Estimations/");
30Real Estimation::Save_AtFile(PathMMS, "Heavy");
31