Aller au contenu

Solutions to Exo9

First run the optimization as usual through the main in main_cabin.py. The rest of the work is done in file main_cabin_1run.py: * retrieve the index of the best design in the sense of the mean Pareto rank in the file $run_dir/pareto_ranks.csv. * find the associated design variables by reading $run_dir/uncertain_design_stats.csv. * And then rebuild an entire optimization problem but only one simulation is performed through

    wksXunc_name = "Retrofit" + "_" + idf_name
    costs = Simuls.compute_cost_functions(
        file_name=wksXunc_name
    )
* The idf file produced with updated design variables is accessed through the handle :
  Travaux = Simuls.__getattribute__(wksXunc_name)
  Modele_energyplus = Travaux.engine_ep.idf.idfobjects
  print(Modele_energyplus["MATERIAL"]) # example of a field of the idf object