Skip to content

Commit

Permalink
Added the bounds on the logarithmic batch size variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertLee125 committed Jun 8, 2024
1 parent c1fee75 commit 4961988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdplib/batch_processing/batch_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def get_volume_bounds(model, j):
model.STAGES, bounds=get_volume_bounds, doc='Logarithmic Volume of the Units'
)
model.batchSize_log = Var(
model.PRODUCTS, model.STAGES, doc='Logarithmic Batch Size of the Products'
model.PRODUCTS, model.STAGES, bounds=(-10,10), doc='Logarithmic Batch Size of the Products'
)
model.cycleTime_log = Var(
model.PRODUCTS, doc='Logarithmic Cycle Time of the Products'
Expand Down Expand Up @@ -701,4 +701,4 @@ def units_in_phase_xor_rule(model, j):
SolverFactory('gams').solve(
m, solver='baron', tee=True, add_options=['option optcr=1e-6;']
)
m.min_cost.display()
m.min_cost.display()

0 comments on commit 4961988

Please sign in to comment.