MinIteration: Integer;
The MinIteration property determines the minimum number of iterations to solve the system.. Minimum value of this property is 1.
Executing the example requires a modeling container with the CONT_MODEL identifier and a model of the System of Non-linear Equations type with the NON_LINEAR identifier.
Sub main;
Var
ActiveMetabase: IMetabase;
ModelCont: IMetabaseObjectDescriptor;
Descript: IMetabaseObjectDescriptor;
Obj: IMetabaseObject;
Model: IMsModel;
Eq: IMsNonLinearEquationsTransform;
Transform: IMsFormulaTransform;
Begin
ActiveMetabase := MetabaseClass.Active;
ModelCont := ActiveMetabase.ItemById("CONT_MODEL");
Descript := ActiveMetabase.ItemByIdNamespace("NON_LINEAR", ModelCont.Key);
Obj := Descript.Edit;
Model := Obj As IMsModel;
Model.TreatNullsAsZeros := True;
Transform := Model.Transform;
Eq := Transform.EquationsFormula.Method As IMsNonLinearEquationsTransform;
Eq.MethodType := NonLinearEquationsType.NewtonMethod;
Eq.DerivativeShift := 2.1;
Eq.InitApproximation := Null;
Eq.MinIteration := 1000;
Eq.MaxIteration := 1500;
Obj.Save;
End Sub main;
After executing the example the minimum of one thousand iterations are executed for the system solution.
See also: