Add a new solution. Note that it will not be added to the pool of solution
right away. One must call Synchronize for this to happen.
Works in O(num_solutions_to_keep_).
Returns the variable value of variable 'var_index' from solution
'solution_index' where solution_index must be smaller than NumSolutions()
and 'var_index' must be smaller than number of variables.
Updates the current pool of solution with the one recently added. Note that
we use a stable ordering of solutions, so the final pool will be
independent on the order of the calls to AddSolution() provided that the
set of added solutions is the same.
Works in O(num_solutions_to_keep_).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["`SharedSolutionRepository` is a class in C++ that manages a pool of solutions."],["It provides methods to add, retrieve, and synchronize solutions."],["The repository maintains a stable ordering of solutions and allows access to individual variable values within a solution."],["Users can obtain a random solution biased towards better solutions using `GetRandomBiasedSolution`."],["The repository stores a limited number of solutions determined during initialization."]]],[]]