stanle / madopt

Apache License 2.0
16 stars 5 forks source link

Segfault on no objective set #8

Closed paul-scott closed 7 years ago

paul-scott commented 7 years ago

If the user forgets to set an objective in the C++ interface they get an segfault. To make it safer can either check if object is set and cleanly pass error or use a default objective of 0.

stanle commented 7 years ago

I have set the default objective to 0.