openopt / copt

A Python library for mathematical optimization
http://openo.pt/copt
Other
135 stars 35 forks source link

Refactor utils.py #64

Closed GeoffNN closed 4 years ago

GeoffNN commented 4 years ago

Right now, utils.py contains objects for loss functions, constraints, and helper functions for speeding up computation. It should probably be split in 3 files: functions.py, constraints.py and utils.py.

Adding this as a general TODO, and up for discussion. (@fabianp )

fabianp commented 4 years ago

+1 except I would like to have more meaningful names than functions.py

GeoffNN commented 4 years ago

Maybe loss.py, constraint.py and utils.py?

fabianp commented 4 years ago

loss.py would be better for instance

fabianp commented 4 years ago

Indeed