Skip to content

Which solver can solve a MINLP and produce duals #844

@odow

Description

@odow

I want to solve

using SDDP, Gurobi
model = SDDP.LinearPolicyGraph(
    stages = 3,
    lower_bound = 0.0,
    optimizer = Gurobi.Optimizer,
) do sp, t
    @variable(sp, 0 <= x <= 10, SDDP.State, Int, initial_value = 1)
    @constraint(sp, x.out >= x.in)
    @stageobjective(sp, exp(x.out))
end
SDDP.train(model)
SDDP.calculate_bound(model), 3 * exp(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions