rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
save_detailed_simulations.m File Reference

perform loop over detailed simulations and save results or check consistency with existing saved results. More...

Go to the source code of this file.

Functions

function  save_detailed_simulations (model, model_data, M, savepath)
 perform loop over detailed simulations and save results or check consistency with existing saved results. More...
 

Detailed Description

perform loop over detailed simulations and save results or check consistency with existing saved results.

Definition in file save_detailed_simulations.m.

Function Documentation

function save_detailed_simulations (   model,
  model_data,
  M,
  savepath 
)

perform loop over detailed simulations and save results or check consistency with existing saved results.

  1. If the given path does not exist, it is generated and a set of detailed simulations for all parameters mu (columns of M). is computed and the results are stored in the path specified in savepath.
    Files to be generated in the target path are
    • settings.mat :containing model, grid, M, path, ... such that the directory can be regenerated with this file and the current function
    • detail1.mat :containing the simulation data for first \(mu\) vector in M
    • detail1.mat :containing the simulation data for second \(mu\) vector in M
    • ....
    • detail123.mat : ...
  2. If the path exists, a check on consistency is performed by checking the model and Mtrain fields and checking whether the previous computation has been finished. If it is not, and the current settings are consistent with the old ones, the computations are resumed.
Parameters
modelmodel
model_datamodel data
Mis a matrix of \(mu\) vectors (column vectors) for which detailed simulations shall be computed and stored.
savepathis the directory name relative to RBMATLABTEMP where the detailed simulations shall be stored.
Required fields of model:
  • mu_names —  a string array containing the symbolic names of the parameter vector \(\mu\)
  • filecache_ignore_fields_in_model —  filecache ignore fields in model
  • debug —  flag indicating wether debug output shall be turned on
  • num_cpus —  num cpus
Optional fields of model:
  • force_delete —  if this option is set to true (the default), directories with data inconsistent with the current settings are deleted.

Definition at line 17 of file save_detailed_simulations.m.

Here is the caller graph for this function: