Builds a solution from a known assignment, typically to give it as initial solution to a solver.
Builds a solution from a known assignment, typically to give it as initial solution to a solver.
The assignment must assign all the variables and be feasible. Its value is trusted: it is only checked against the problem's evaluate method when the solver runs with a debug mode other than be.cetic.ddolibscala.common.util.DebugMode.Off.
Value parameters
assignment
an array t such that t(i) is the value assigned to the variable i
value
the objective value of the assignment
Attributes
Returns
a solution wrapping the given assignment and value