Solution

be.cetic.ddolibscala.layered.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(assignment: Array[Int], value: Double): Solution

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