Skip to content

Conversation

fuookami
Copy link
Contributor

When i using scip as rmp solver in column generation algorithm, i need to get the dual variable solution, at the same time, presolving and heuristics should be set off, like here:

val solver = ScipLinearSolver(
    config = config,
    callBack = callBack.copy()
        .configuration { _, model, _, _ ->
            model.setPresolving(SCIP_ParamSetting.SCIP_PARAMSETTING_OFF, true)
            model.setHeuristics(SCIP_ParamSetting.SCIP_PARAMSETTING_OFF, true)
            ok
        }
        .analyzingSolution { _, model, _, constraints ->
            dualSolution = constraints.map {
                Flt64(model.getDual(it))
            }
            ok
        }
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant