Skip to content

Commit

Permalink
Lower trace details for fitness cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
richoux committed Mar 13, 2024
1 parent 934b3f7 commit bdccff4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/search_unit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ namespace ghost
else
{
model.variables[ variable_to_change ].set_value( new_value );

model.auxiliary_data->update( variable_to_change, new_value );
}
}
Expand Down Expand Up @@ -739,7 +738,7 @@ namespace ghost
/********************************************
* 1. Choice of worst variable(s) to change *
********************************************/
#if defined GHOST_TRACE
#if defined GHOST_TRACE && not defined GHOST_FITNESS_CLOUD
print_errors();

for( int i = 0 ; i < data.number_variables; ++i )
Expand Down Expand Up @@ -771,7 +770,7 @@ namespace ghost
continue;
}

#if defined GHOST_TRACE
#if defined GHOST_TRACE && not defined GHOST_FITNESS_CLOUD
if( variable_candidates_heuristic->get_name().compare( "Adaptive Search" ) == 0 )
{
COUT << "\n(Adaptive Search Variable Candidates Heuristic) Variable candidates: v[" << static_cast<int>( variable_candidates[0] ) << "]=" << model.variables[ static_cast<int>( variable_candidates[0] ) ].get_value();
Expand Down Expand Up @@ -806,7 +805,7 @@ namespace ghost

variable_to_change = variable_heuristic->select_variable( variable_candidates, data, rng );

#if defined GHOST_TRACE
#if defined GHOST_TRACE && not defined GHOST_FITNESS_CLOUD
COUT << options.print->print_candidate( model.variables ).str();
COUT << "\n********\nNumber of loop iteration: " << data.search_iterations << "\n";
COUT << "Number of local moves performed: " << data.local_moves << "\n";
Expand Down Expand Up @@ -891,7 +890,7 @@ namespace ghost
double min_conflict = std::numeric_limits<double>::max();
int new_value = value_heuristic->select_value( variable_to_change, data, model, delta_errors, min_conflict, rng );

#if defined GHOST_TRACE
#if defined GHOST_TRACE && not defined GHOST_FITNESS_CLOUD
std::vector<int> candidate_values;
std::map<int, double> cumulated_delta_errors;
std::vector<double> cumulated_delta_errors_antidote( delta_errors.size() );
Expand Down

0 comments on commit bdccff4

Please sign in to comment.