cpyp/mf_crp.h
void update_llh_add_customer_to_table_seating(unsigned n) {
    unsigned t = 0;
    if (n == 0) t = 1;
    llh_ -= log(strength_ + num_customers_);
    if (t == 1) llh_ += log(discount_) + log(strength_ / discount_ + num_tables_);
    if (n > 0) llh_ += log(n - discount_);
  }
// call this before changing the number of tables / customers
call this before changing the number of tables / customers
call this before changing the number of tables / customers
void update_llh_add_customer_to_table_seating(unsigned n) {
    unsigned t = 0;
    if (n == 0) t = 1;
    llh_ -= log(strength_ + num_customers_);
    if (t == 1) llh_ += log(discount_) + log(strength_ / discount_ + num_tables_);
    if (n > 0) llh_ += log(n - discount_);
  }
void update_llh_add_customer_to_table_seating ( unsigned n ) { unsigned t = 0 ; if ( n == 0 ) t = 1 ; llh_ -= log ( strength_ + num_customers_ ) ; if ( t == 1 ) llh_ += log ( discount_ ) + log ( strength_ / discount_ + num_tables_ ) ; if ( n > 0 ) llh_ += log ( n - discount_ ) ; }
call this before changing the number of tables / customers
call this before changing the number of tables / customers