Skip to content

Commit

Permalink
Change the default value of 'autoOptimize' to true #70
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaLiyt committed Nov 4, 2024
1 parent 911ffe6 commit d6874fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private void addDeltaExchangeOperator(RealParameter parameter, BEASTContext cont
DeltaExchangeOperator operator = new DeltaExchangeOperator();
operator.setInputValue("parameter", parameter);
operator.setInputValue("weight", context.getOperatorWeight(parameter.getDimension() - 1));
operator.setInputValue("autoOptimize", false);
operator.setInputValue("autoOptimize", true);
operator.initAndValidate();
operator.setID(parameter.getID() + ".deltaExchange");
// add operator
Expand Down Expand Up @@ -84,7 +84,7 @@ private void addExtraDeltaExchangeOperators(Frequencies freqsParameter, BEASTCon
for (int i = 0; i < pairs.length; i++) {
DeltaExchangeOperator operator = new DeltaExchangeOperator();
operator.setInputValue("parameter", freqsParameter.frequenciesInput.get());
operator.setInputValue("autoOptimize", false);
operator.setInputValue("autoOptimize", true);
operator.setInputValue("delta", 1.0 / 16);
operator.setInputValue("weightvector", pairs[i]);
operator.setInputValue("weight", "1.0"); // set operator weight to 1
Expand Down

0 comments on commit d6874fd

Please sign in to comment.