Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RJT new #55

Merged
merged 54 commits into from
Aug 27, 2024
Merged

RJT new #55

merged 54 commits into from
Aug 27, 2024

Conversation

esahon
Copy link
Contributor

@esahon esahon commented Aug 23, 2024

New RJT pull request

"""
function RJTVariables(model::Model, diagram::InfluenceDiagram, z::OrderedDict{Name, DecisionVariable})
# Get the RJT structure
# SHOULD WE DEFINE C_rjt and A_rjt AS PART OF THE INFLUENCE DIAGRAM STRUCT OR AS THEIR OWN, MAYBE BETTER TO DEFINE AS PART OF INFLUENCE DIAGRAM IF THERE IS NEVER A NEED
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense for them to be independent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we make them independent, they need to be passed as arguments to several functions, where diagram is already passed as an argument. Is it worth it, what do you think?


@info("Starting the optimization process.")
optimizer = optimizer_with_attributes(
() -> HiGHS.Optimizer()
)
set_optimizer(model, optimizer)

spu = singlePolicyUpdate(diagram, model, z, x_s)
println(variables==x_s)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@solliolli solliolli merged commit f9b3ff9 into gamma-opt:master Aug 27, 2024
3 checks passed
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.

3 participants