Support for BMI models in PENLAB
Code for bug in penlab interface
Add factor 2 in quadratic cost