예제 #1
0
 /// <summary>
 /// Initializes new instance of <see cref="AdequacyCriterion"/>
 /// </summary>
 /// <param name="id">Adequacy criterion identifier</param>
 /// <param name="name">Adequacy criterion name</param>
 /// <param name="variableIdentifier">Adequacy criterion variable identifier</param>
 /// <param name="adequacyType">Adequacy criterion type</param>
 public AdequacyCriterion(
     TId id,
     string name,
     string variableIdentifier,
     AdequacyCriterionType adequacyType) : base(id, name, variableIdentifier, CriterionType.Minimizing, string.Empty)
 {
     AdequacyType = adequacyType;
 }
예제 #2
0
 /// <summary>
 /// Initializes new instance of <see cref="Parameter"/>
 /// </summary>
 /// <param name="id">Parameter identifier</param>
 /// <param name="name">Parameter name</param>
 /// <param name="variableIdentifier">Parameter variable identifier</param>
 /// <param name="minValue">Minimal possible value of the parameter</param>
 /// <param name="maxValue">Maximal possible value of the parameter</param>
 public Parameter(
     TId id,
     string name,
     string variableIdentifier,
     double minValue,
     double maxValue) : base(id, name, variableIdentifier)
 {
     MinValue = minValue;
     MaxValue = maxValue;
 }
예제 #3
0
 public Criterion(
     TId id,
     string name,
     string variableIdentifier,
     CriterionType type,
     string expression = "") : base(id, name, variableIdentifier)
 {
     Type       = type;
     Weight     = 1;
     Expression = expression;
 }
예제 #4
0
 /// <summary>
 /// Initializes new instance of <see cref="Experiment"/>
 /// </summary>
 /// <param name="id">Experiment identifier</param>
 /// <param name="number">Experiment number</param>
 public Experiment(
     TId id,
     int number) : base(id)
 {
     Number           = number;
     IsActive         = true;
     IsParetoOptimal  = false;
     ParameterValues  = new Dictionary <TId, double>();
     CriterionValues  = new Dictionary <TId, double>();
     ConstraintValues = new Dictionary <TId, double>();
 }
예제 #5
0
 /// <summary>
 /// Initializes new instance of <see cref="Constraint"/>
 /// </summary>
 /// <param name="id">Constraint identifier</param>
 /// <param name="name">Constraint name</param>
 /// <param name="variableIdentifier">Constraint variable identifier</param>
 /// <param name="constraintRelation">Constraint relation</param>
 /// <param name="value">Constraint limitation value</param>
 /// <param name="expression">Mathematical expression that can be used to calculate constraint value</param>
 public Constraint(
     TId id,
     string name,
     string variableIdentifier,
     Relation constraintRelation,
     double value,
     string expression = "") : base(id, name, variableIdentifier)
 {
     ConstraintRelation = constraintRelation;
     Value      = value;
     Expression = expression;
 }
 /// <summary>
 /// Initializes new instance of <see cref="IdentificationExperiment"/>
 /// </summary>
 /// <param name="id">Experiment identifier</param>
 /// <param name="number">Experiment number</param>
 /// <param name="realExperimentId">Real experiment identifier</param>
 public IdentificationExperiment(
     TId id,
     int number,
     TId realExperimentId) : base(id)
 {
     Number           = number;
     RealExperimentId = realExperimentId;
     IsActive         = true;
     IdentificationParameterValues = new Dictionary <TId, double>();
     MathematicalCriterionValues   = new Dictionary <TId, double>();
     ConstraintValues        = new Dictionary <TId, double>();
     AdequacyCriterionValues = new Dictionary <TId, double>();
 }
예제 #7
0
 /// <summary>
 /// Initializes new instance of <see cref="NamedModelEntity"/> with specified name and variable identifier
 /// </summary>
 /// <param name="id">ID of a new entity</param>
 /// <param name="name">Name of a new entity</param>
 /// <param name="variableIdentifier">Variable identifier of a new entity</param>
 protected NamedModelEntity(TId id, string name, string variableIdentifier)
     : base(id)
 {
     Name = name;
     VariableIdentifier = variableIdentifier;
 }
예제 #8
0
 /// <summary>
 /// Initializes new instance of <see cref="ModelEntity"/> with specified ID
 /// </summary>
 /// <param name="id">ID of a new entity</param>
 protected ModelEntity(TId id)
 {
     Id         = id;
     Properties = new PropertyCollection();
 }