-
Notifications
You must be signed in to change notification settings - Fork 7
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
RJT new #55
Conversation
src/decision_model.jl
Outdated
""" | ||
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
examples/pig_breeding.jl
Outdated
|
||
@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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
New RJT pull request