Skip to content

Extracting solution of decision variables #128

@binkob

Description

@binkob

@sshin23

When solving the examodel, the result is set up in the form:

result = madnlp(em),

however, I could not find a way to extract the exact solution for a variable

I would like to know how specific variables can be extracted. I realized that using ".solution" gets the solution of all variables, but they are combined. For large scale, that can be a problem. I could not find it in the examples.

Ex: If I define variables p and q as decision variables, is there a way I can extract its solution only?

sol_p = value.(p) as used in JuMP.

Thanks

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