optimize: Replace Needser
Created by: btracey
I think Needser
needs to be replaced. The fundamental problem is that it's only a one-way communication, but it needs to be two-way. There are a bunch of optimization algorithms that can make use of a part of the Problem
, if it is available, but do not need to. This is impossible to communicate with the current interface. I think it should be something like
type Useser interface {
Uses(has ProbFuns) (uses ProbFuns, err error)
}
where ProbFuns is the name of the current unnamed structure returned by Needser. The error is non-nil if the Problem
doesn't have the needed methods.