66 this =
this@models.muscle.AMuscleConfig(varargin[:]);
77 #if 0 //mtoc++: 'set.CurrentConfigNr'
80 error(
" Please choose one of the %d possible configurations. ",this.
NumConfigurations);
83 if ~isempty(this.
Model)
84 this.
Model.setConfig(this);
99 #if 0 //mtoc++: 'get.CurrentConfigNr'
101 value = this.fCurConfNr;
110 init@models.muscle.AMuscleConfig(
this);
114 mc = metaclass(
this);
115 [~,n] = fileparts(which(mc.Name));
118 p = fullfile(fileparts(which(
" models.muscle.Model ")),
" .. ",
" .. ",
" data ");
119 outdir = fullfile(p,n);
128 #if 0 //mtoc++: 'set.OutputDir'
131 Utils.ensureDir(value);
133 this.
ImgDir= fullfile(value," img ");
162 s = load(fullfile(this.
OutputDir,sprintf(
" IC_%s.mat ",optstr)));
170 if this.RequiresComputedInitialConditions
171 this.ICCompMode=
true;
173 file = fullfile(this.
OutputDir,sprintf(
" IC_%s.mat ",optstr));
174 value = ~this.HasICComputation || exist(file,
" file ") == 2;
AExperimentModelConfig(varargin)
Override in subclasses and set NumConfigurations to the number of possible experiment runs with diffe...
Collection of generally useful functions.
RequiresComputedInitialConditions
virtual function o = getOutputOfInterest(double t,matrix< double > y)
function str = getOptionStr(withtag)
A variable number of input arguments.
TargetOutputValues
The experimentally determined output values. Must be a NumConfigurations x NumOutputs vector...
function computeInitialConditions()
CurrentConfigNr
Sets the configuration number.
Model: Model for a FEM-discretized muscle model.