From 49619881a8f63bd16f17c89b632f2d61e2566936 Mon Sep 17 00:00:00 2001 From: Albert Lee Date: Sat, 8 Jun 2024 19:18:11 -0400 Subject: [PATCH] Added the bounds on the logarithmic batch size variables. --- gdplib/batch_processing/batch_processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdplib/batch_processing/batch_processing.py b/gdplib/batch_processing/batch_processing.py index f11610c..9acf0b1 100644 --- a/gdplib/batch_processing/batch_processing.py +++ b/gdplib/batch_processing/batch_processing.py @@ -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' @@ -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() \ No newline at end of file