Skip to content

Access to value of constraint variable at the end of model.optimize? #254

@janpeter19

Description

@janpeter19

Checklist

Question

I am a new user to Opltang and just used it for smaller problems, mainly linear-programming.
It would be very convenient to have access to the actual value of a constraining variable at the
end of an optimisation. The actual objectiv as well as variables I can get but I do not see
how to read out the value of the constraint. Can you help me?

Examples:
model.objective.value - ok
model.variables.x_opt.primal - ok
model.constraints.y_lim.value - not ok
model.constraints.y_lim.primal - not ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions