Skip to content

Commit

Permalink
add a note about keeping args in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Jan 30, 2024
1 parent a5e98e8 commit caea516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/analysis/parsimonious.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ function parsimonious_optimized_values(
settings = [],
parsimonious_objective::C.Value,
parsimonious_optimizer = nothing,
parsimonious_sense = J.MIN_SENSE,
parsimonious_sense = Minimal,
parsimonious_settings = [],
tolerances = [absolute_tolerance_bound(0)],
output = constraints,
kwargs...,
)
# arguments need to be kept in sync with
# frontend_parsimonious_optimized_values

# first solve the optimization problem with the original objective
om = optimization_model(constraints; objective, kwargs...)
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ function optimized_values(
output::C.ConstraintTreeElem = constraints,
kwargs...,
)
# arguments need to be kept in sync with frontend_optimized_values

om = optimization_model(constraints; kwargs...)
for m in settings
m(om)
Expand Down

0 comments on commit caea516

Please sign in to comment.