Class COptQuestFixFloatGroup
After an initial part of the search, the optimizer makes one more trial solution from each new trial solution for each group. For a fix group, the members of the group have the values of the best solution, and all the other variables keep the values of the new trial solution. For a float group, the members keep the values of the new trial solution, and all the other variables have the values of the best solution. The optimizer also evaluates the new trial solution, and it does not evaluate a trial solution that duplicates one it already has. The length of the initial part increases with the number of variables. The optimizer counts these trial solutions in the iteration budget.
With a fix group of a set of variables, the optimizer makes the same trial solutions as with a float group of all the other decision variables, so declare the smaller set. For a group with no members and for a group that holds every decision variable, the optimizer makes no extra trial solutions.
-
Constructor Summary
ConstructorsConstructorDescriptionCOptQuestFixFloatGroup(boolean isFix) Creates an empty fix group or float group. -
Method Summary
Modifier and TypeMethodDescriptionvoidAddVariable(COptQuestVariable variable) Adds a variable to the group.
-
Constructor Details
-
COptQuestFixFloatGroup
public COptQuestFixFloatGroup(boolean isFix) Creates an empty fix group or float group.- Parameters:
isFix-truefor a fix group, whose members have the values of the best solution in the extra trial solutions;falsefor a float group, whose members are the only variables that do not have the values of the best solution in the extra trial solutions.
-
-
Method Details
-
AddVariable
Adds a variable to the group.- Parameters:
variable- the decision variable to add.
-