original_docstring:  Creates a new model
  
      Inputs:
         name: model name
         env: license environment
         config: config file specifying model parameters
  
      Output:
         a model object
  
      
docstring: Creates a new model
  Inputs:
  name: model name
  env: license environment
  config: config file specifying model parameters
  
  a model object
docstring_tokens: Creates a new model Inputs : name : model name env : license environment config : config file specifying model parameters a model object
code: def newModel(*, name, env, config):
      """ Creates a new model
  
      Inputs:
         name: model name
         env: license environment
         config: config file specifying model parameters
  
      Output:
         a model object
  
      """
      model = gb.Model(name, env=env)
      model.Params.LogFile = os.path.expandvars(config[GUROBI][GUROBI_LOGFILE_NAME])
      model.Params.OutputFlag = int(config[GUROBI][OUTPUT_FLAG])
      model.Params.OptimalityTol = float(config[GUROBI][OPTIMALITY_TOL])
      model.Params.BarConvTol = float(config[GUROBI][BAR_CONV_TOL])
      model.Params.BarQCPConvTol = float(config[GUROBI][BAR_QCP_CONV_TOL])
      model.Params.BarIterLimit = int(config[GUROBI][BAR_ITER_LIMIT])
      model.Params.FeasibilityTol = float(config[GUROBI][FEASIBILITY_TOL])
      model.Params.Threads = int(config[GUROBI][THREADS])
      model.Params.Presolve = int(config[GUROBI][PRESOLVE])
      model.Params.NumericFocus = int(config[GUROBI][NUMERIC_FOCUS])
      return model
code_tokens: def newModel ( * , name , env , config ) : model = gb . Model ( name , env = env ) model . Params . LogFile = os . path . expandvars ( config [ GUROBI ] [ GUROBI_LOGFILE_NAME ] ) model . Params . OutputFlag = int ( config [ GUROBI ] [ OUTPUT_FLAG ] ) model . Params . OptimalityTol = float ( config [ GUROBI ] [ OPTIMALITY_TOL ] ) model . Params . BarConvTol = float ( config [ GUROBI ] [ BAR_CONV_TOL ] ) model . Params . BarQCPConvTol = float ( config [ GUROBI ] [ BAR_QCP_CONV_TOL ] ) model . Params . BarIterLimit = int ( config [ GUROBI ] [ BAR_ITER_LIMIT ] ) model . Params . FeasibilityTol = float ( config [ GUROBI ] [ FEASIBILITY_TOL ] ) model . Params . Threads = int ( config [ GUROBI ] [ THREADS ] ) model . Params . Presolve = int ( config [ GUROBI ] [ PRESOLVE ] ) model . Params . NumericFocus = int ( config [ GUROBI ] [ NUMERIC_FOCUS ] ) return model
short_docstring: Creates a new model
  Inputs:
  name: model name
  env: license environment
  config: config file specifying model parameters
short_docstring_tokens: Creates a new model Inputs : name : model name env : license environment config : config file specifying model parameters
comment: """ Creates a new model
  
      Inputs:
         name: model name
         env: license environment
         config: config file specifying model parameters
  
      Output:
         a model object
  
      """