Solution

be.cetic.ddolibscala.nolayer.solver.Solution
See theSolution companion class
object Solution

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Solution.type

Members list

Value members

Concrete methods

def apply(labels: Seq[Int], value: Double): Solution

Builds a solution from a known sequence of labels, typically to give it as initial solution to a solver.

Builds a solution from a known sequence of labels, typically to give it as initial solution to a solver.

The sequence must lead from the initial state to a target state. 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

labels

the sequence of labels applied from the initial state

value

the objective value of the solution

Attributes

Returns

a solution wrapping the given labels and value