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