define_model function

Define and evaluate model expression