Changeset 9519


Ignore:
Timestamp:
Dec 21, 2014 12:47:47 AM (4 years ago)
Author:
wehart
Message:

Adding copyright headers for files that are missing them.

Updating some of the copyright assertions

Location:
pyomo/trunk
Files:
466 edited

Legend:

Unmodified
Added
Removed
  • pyomo/trunk/admin/jenkins.py

    r9231 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import sys
    211import os
  • pyomo/trunk/examples/bilevel/bard_5_1_1.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Example 5.1.1 from
    211#
  • pyomo/trunk/examples/bilevel/example1.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.environ
    211from pyomo.core import *
  • pyomo/trunk/examples/bilevel/example2.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.core import *
    211from pyomo.bilevel import *
  • pyomo/trunk/examples/bilevel/example3.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.environ
    211from pyomo.core import *
  • pyomo/trunk/examples/bilevel/interdiction.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.environ
    211from pyomo.core import *
  • pyomo/trunk/examples/bilevel/pmedian.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.core import *
  • pyomo/trunk/examples/bilevel/sensor.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.environ
    211from pyomo.core import *
  • pyomo/trunk/examples/bilevel/sensor_1_level.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.core import *
  • pyomo/trunk/examples/bilevel/shortest.py

    r9272 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211from pyomo.bilevel import *
  • pyomo/trunk/examples/bilevel/shortest_reformulation.py

    r9272 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/examples/bilevel/t1.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.environ
    211from pyomo.core import *
  • pyomo/trunk/examples/bilevel/t2.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.environ
    211from pyomo.core import *
  • pyomo/trunk/examples/bilevel/t5.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# A duality example adapted from
  • pyomo/trunk/examples/bilevel/t5a.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# A duality example adapted from
  • pyomo/trunk/examples/bilevel/test1.py

    r9272 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211import sys
  • pyomo/trunk/examples/bilevel/testall.py

    r9272 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211from pyomo.bilevel import *
  • pyomo/trunk/examples/core/integrality1.py

    r9482 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/examples/core/integrality2.py

    r9482 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/examples/core/t1.py

    r9488 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/examples/core/t2.py

    r9480 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/examples/core/t5.py

    r9488 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# A duality example adapted from
  • pyomo/trunk/examples/dae/Heat_Conduction.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Heat Conduction Model
    211
  • pyomo/trunk/examples/dae/Optimal_Control.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Sample Problem 1 (Ex 1 from Dynopt Guide)
    211#
  • pyomo/trunk/examples/dae/PDE_example.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Example 1 from http://www.mathworks.com/help/matlab/ref/pdepe.html
    211
  • pyomo/trunk/examples/dae/Parameter_Estimation.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Sample Problem 2: Parameter Estimation
    211# (Ex 5 from Dynopt Guide)
  • pyomo/trunk/examples/dae/Path_Constraint.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Sample Problem 3: Inequality State Path Constraint
    211# (Ex 4 from Dynopt Guide)
  • pyomo/trunk/examples/dae/distill_DAE.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211from pyomo.dae import *
  • pyomo/trunk/examples/dae/laplace_BVP.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211from pyomo.dae import *
  • pyomo/trunk/examples/dae/run_Optimal_Control.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211from pyomo.dae import *
  • pyomo/trunk/examples/dae/run_Parameter_Estimation.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211from pyomo.dae import *
  • pyomo/trunk/examples/dae/run_Path_Constraint.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211from pyomo.dae import *
  • pyomo/trunk/examples/dae/run_distill.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211from pyomo.dae import *
  • pyomo/trunk/examples/gdp/data_set.py

    r3361 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#def data():
    211
  • pyomo/trunk/examples/gdp/disease_model.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# ============================================
    211# SIR disease model using a low/high transmission parameter
  • pyomo/trunk/examples/gdp/jobshop.py

    r9242 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/examples/mpec/df.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
    110# df.py
    211# Problem adapted from
  • pyomo/trunk/examples/mpec/indexed.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.environ
    211from pyomo.core import *
  • pyomo/trunk/examples/mpec/linear1.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
    110# linear1.py
    211#
  • pyomo/trunk/examples/mpec/mcplib/billups.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
    110# billups.py
    211#
  • pyomo/trunk/examples/mpec/testall1.py

    r9272 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# A test model to verify the internal representation of the
  • pyomo/trunk/examples/pyomo/amplbook2/diet.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Imports
  • pyomo/trunk/examples/pyomo/amplbook2/dieti.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Imports
  • pyomo/trunk/examples/pyomo/amplbook2/econ2min.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/amplbook2/econmin.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Imports
  • pyomo/trunk/examples/pyomo/amplbook2/prod.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Imports
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/amplbook2/steel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/amplbook2/steel3.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/amplbook2/steel4.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/benders/master.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110### Pyomo master for AMPL Bender's example, available
    211### from http://www.ampl.com/NEW/LOOP2/stoch2.mod
  • pyomo/trunk/examples/pyomo/benders/subproblem.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110### Pyomo sub-problem for AMPL Bender's example, available
    211### from http://www.ampl.com/NEW/LOOP2/stoch2.mod
  • pyomo/trunk/examples/pyomo/callbacks/sc.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyutilib.misc import Options
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/callbacks/sc_callback.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/callbacks/sc_script.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.opt import *
  • pyomo/trunk/examples/pyomo/callbacks/scalability/run.py

    r9253 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import sys
    211import random
  • pyomo/trunk/examples/pyomo/callbacks/tsp.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Symmetric TSP with points on a plane
  • pyomo/trunk/examples/pyomo/concrete/Whiskas.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/concrete/knapsack-abstract.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Abstract Knapsack Problem
  • pyomo/trunk/examples/pyomo/concrete/knapsack-concrete.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Knapsack Problem
  • pyomo/trunk/examples/pyomo/connectors/network_flow.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/connectors/network_flow_proposed.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/diet/diet-sqlite.py

    r4517 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110"""
    211Create the diet.sqlite file with all the appropriate data.
  • pyomo/trunk/examples/pyomo/diet/diet1.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/diet/diet2.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/draft/api.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110##
    211## General description of the API for Pyomo objects
  • pyomo/trunk/examples/pyomo/draft/bpack.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/draft/diet2.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110## variant of diet.py that presents constraints and objectives twice,
    211## to see how terms are collected
  • pyomo/trunk/examples/pyomo/p-median/pmedian.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/p-median/solver1.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Imports from Pyomo and PyUtilib
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/p-median/solver2.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Imports from Pyomo and PyUtilib
    211from pyomo.core import *
  • pyomo/trunk/examples/pyomo/piecewise/affine.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A strictly affine piecewise example
    211#
  • pyomo/trunk/examples/pyomo/piecewise/convex.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A simple example illustrating a piecewise
    211# representation of the function Z(X)
  • pyomo/trunk/examples/pyomo/piecewise/indexed.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A piewise approximiation of a nonconvex objective function.
    211
  • pyomo/trunk/examples/pyomo/piecewise/indexed_nonlinear.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Nonlinear version of example4.
    211# Must have a nonlinear solver
  • pyomo/trunk/examples/pyomo/piecewise/step.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A simple example illustrating a piecewise
    211# representation of the step function Z(X)
  • pyomo/trunk/examples/pyomo/quadratic/example1.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# a brain-dead parabolic function of a single variable, whose minimum is
    211# obviously at x=0. the entry-level quadratic test-case. the lack of
  • pyomo/trunk/examples/pyomo/quadratic/example2.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# a slightly less brain-dead separable parabolic function of three variables, whose
    211# minimum is obviously at x[1]=x[2]=x[3]=0.
  • pyomo/trunk/examples/pyomo/quadratic/example3.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# a slightly less brain-dead separable parabolic function of three variables.
    211# optimal objective function value is obviously 5, with the optimal solution
  • pyomo/trunk/examples/pyomo/quadratic/example4.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# a simple quadratic function of two variables - taken from the CPLEX file format reference manual.
    211# optimal objective function value is 60. solution is x=10, y=0.
  • pyomo/trunk/examples/pyomo/radertext/Ex2_1.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Example 2.1 - Allen Holder
  • pyomo/trunk/examples/pyomo/radertext/Ex2_2.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Example 2.2 - Allen Holder
  • pyomo/trunk/examples/pyomo/radertext/Ex2_3.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Problem 2.17 - courtesy Allen Holder
  • pyomo/trunk/examples/pyomo/radertext/Ex2_5.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Example 2.5 - Allen Holder
  • pyomo/trunk/examples/pyomo/radertext/Ex2_6a.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Example 2.6a - Allen Holder
  • pyomo/trunk/examples/pyomo/radertext/Ex2_6b.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Example 2.6b - Allen Holder
  • pyomo/trunk/examples/pyomo/sos/DepotSiting.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# a simple SOS example from "Modeling Building in Mathematical Programming", H. Paul Williams, 4th Edition, p. 166.
    211
  • pyomo/trunk/examples/pyomo/sos/basic_sos2_example.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.core import *
    211
  • pyomo/trunk/examples/pyomo/sos/sos2_piecewise.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110"""
    211This example shows how to represent a piecewise function using
  • pyomo/trunk/examples/pyomo/suffixes/duals_pyomo.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A Suffix example for the collection of duals.
    211
  • pyomo/trunk/examples/pyomo/suffixes/duals_script.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A Suffix example for the collection of duals.
    211#
  • pyomo/trunk/examples/pyomo/suffixes/gurobi_ampl_example.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A Suffix example for the gurobi_ampl solver.
    211#
  • pyomo/trunk/examples/pyomo/suffixes/gurobi_ampl_iis.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A Suffix example for the gurobi_ampl solver.
    211#
  • pyomo/trunk/examples/pyomo/suffixes/ipopt_scaling.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# This Pyomo example is formulated as a python script.
    211# To run this script execute the following command:
  • pyomo/trunk/examples/pyomo/suffixes/ipopt_warmstart.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# A Suffix example for ipopt.
    211# Translated to Pyomo from AMPL model source at:
  • pyomo/trunk/examples/pyomo/suffixes/sipopt_hicks.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Author: Hans Pirnay, 2012-11-27
    211# This is the Hicks reactor example from the sIPOPT paper
  • pyomo/trunk/examples/pyomo/suffixes/sipopt_parametric.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Author: Hans Pirnay, 2012-11-27
    211# The parametric.mod example from sIPOPT
  • pyomo/trunk/examples/pyomo/tutorials/data.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/tutorials/excel.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/tutorials/param.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/tutorials/set.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pyomo/tutorials/table.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pysp/farmer/concrete/ReferenceModel.py

    r9358 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
    110# Farmer: rent out version has a scalar root node var
    211# note: this will minimize
  • pyomo/trunk/examples/pysp/farmer/config/aggregategetter.py

    r9449 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.core import *
    211
  • pyomo/trunk/examples/pysp/farmer/config/boundsetter.py

    r9449 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.core import *
    211
  • pyomo/trunk/examples/pysp/farmer/config/rhosetter.py

    r9449 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def ph_rhosetter_callback(ph, scenario_tree, scenario):
  • pyomo/trunk/examples/pysp/farmer/expr_maxmodels/ReferenceModel.py

    r9356 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Farmer: rent out version has a scalar root node var
    211# note: this will minimize
  • pyomo/trunk/examples/pysp/farmer/expr_models/ReferenceModel.py

    r9356 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Farmer: rent out version has a scalar root node var
    211# note: this will minimize
  • pyomo/trunk/examples/pysp/farmer/maxmodels/ReferenceModel.py

    r9354 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Farmer: rent out version has a scalar root node var
    211# note: this will minimize
  • pyomo/trunk/examples/pysp/farmer/models/ReferenceModel.py

    r9354 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Farmer: rent out version has a scalar root node var
    211# note: this will minimize
  • pyomo/trunk/examples/pysp/farmerWintegers/models/ReferenceModel.py

    r9354 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Farmer: rent out version has a scalar root node var
    211# note: this will minimize
  • pyomo/trunk/examples/pysp/farmerWpiecewise/models/ReferenceModel.py

    r9354 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pysp/farmerWrent/models/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Farmer: rent out version
    211# note: this will minimize
  • pyomo/trunk/examples/pysp/finance/financial_planning.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Imports
  • pyomo/trunk/examples/pysp/finance/models/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# Imports
  • pyomo/trunk/examples/pysp/forestry/config/boundsetter.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.core import *
    211
  • pyomo/trunk/examples/pysp/forestry/config/rhosetter.py

    r8593 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110
    211def ph_rhosetter_callback(ph, scenario_tree, scenario):
  • pyomo/trunk/examples/pysp/forestry/expr-models-nb-yr/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# fbv - Chile rules!
    211# dlw - base forest model - begin April 2009
  • pyomo/trunk/examples/pysp/forestry/models-nb-yr/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# fbv - Chile rules!
    211# dlw - base forest model - begin April 2009
  • pyomo/trunk/examples/pysp/hydro/models/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# started as elec3 from Pierre on 8 Dec 2010; removed scenarios
    211#
  • pyomo/trunk/examples/pysp/networkflow/CCmodels/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# A simple budget-constrained single-commodity network flow problem, taken from Ruszcynski.
  • pyomo/trunk/examples/pysp/networkflow/config/aggregategetter.py

    r9449 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.core import *
    211
  • pyomo/trunk/examples/pysp/networkflow/config/rhosetter0.5.py

    r8593 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def ph_rhosetter_callback(ph, scenario_tree, scenario):
  • pyomo/trunk/examples/pysp/networkflow/config/rhosetter1.0.py

    r8593 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def ph_rhosetter_callback(ph, scenario_tree, scenario):
  • pyomo/trunk/examples/pysp/networkflow/config/rhosettermixed.py

    r8593 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def ph_rhosetter_callback(ph, scenario_tree, scenario):
  • pyomo/trunk/examples/pysp/networkflow/config/xboundsetter.py

    r9449 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
    110# This callback must be used with the aggregategetter.py
    211# callback in order to populate the
  • pyomo/trunk/examples/pysp/networkflow/models-cc/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# A simple budget-constrained single-commodity network flow problem, taken from Ruszcynski.
  • pyomo/trunk/examples/pysp/networkflow/models/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# A simple budget-constrained single-commodity network flow problem, taken from Ruszcynski.
  • pyomo/trunk/examples/pysp/sizes/CCmodels/ReferenceModel.py

    r9501 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
    110# revised to have a chance constraint for demand as needed by runef with the CC option
    211#
  • pyomo/trunk/examples/pysp/sizes/config/rhosetter.py

    r8593 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def ph_rhosetter_callback(ph, scenario_tree, scenario):
  • pyomo/trunk/examples/pysp/sizes/models/ReferenceModel.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# This is the two-period version of the SIZES optimization model
  • pyomo/trunk/examples/pysp/sizes/two_period_mip.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# This is the two-period version of the SIZES optimization model.
  • pyomo/trunk/pyomo/bilevel/__init__.py

    r9465 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# Package files
    211
  • pyomo/trunk/pyomo/bilevel/components.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210__all__ = ['SubModel']
  • pyomo/trunk/pyomo/bilevel/linear_dual.py

    r9247 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/bilevel/plugins/__init__.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def load():
  • pyomo/trunk/pyomo/bilevel/plugins/driver.py

    r9272 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import sys
    211import time
  • pyomo/trunk/pyomo/bilevel/plugins/dual.py

    r9489 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/bilevel/plugins/solver1.py

    r9465 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.core import TransformationFactory, Var, ComponentUID, Block, Objective
    211import pyomo.opt
  • pyomo/trunk/pyomo/bilevel/tests/__init__.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
    110# pyomo.bilevel tests
     11#
  • pyomo/trunk/pyomo/checker/__init__.py

    r9465 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.util.plugin import PluginGlobals
    211PluginGlobals.add_env("pyomo")
  • pyomo/trunk/pyomo/checker/checker.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.util.plugin import *
    211
  • pyomo/trunk/pyomo/checker/doc/recompile.py

    r4478 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyinotify
    211import os
  • pyomo/trunk/pyomo/checker/hooks.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110__all__ = ['IPreCheckHook', 'IPostCheckHook']
    211
  • pyomo/trunk/pyomo/checker/plugins/__init__.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110def load():
    211    import pyomo.checker.plugins.checker
  • pyomo/trunk/pyomo/checker/plugins/checker.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import sys
    211import re
  • pyomo/trunk/pyomo/checker/plugins/checkers/__init__.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.checker.plugins.checkers.sample
    211import pyomo.checker.plugins.checkers.py3k
  • pyomo/trunk/pyomo/checker/plugins/checkers/model/__init__.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.checker.plugins.checkers.model.model
    211import pyomo.checker.plugins.checkers.model.imports
  • pyomo/trunk/pyomo/checker/plugins/checkers/model/_rulebase.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211
  • pyomo/trunk/pyomo/checker/plugins/checkers/model/assignment.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211
  • pyomo/trunk/pyomo/checker/plugins/checkers/model/conditional.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211
  • pyomo/trunk/pyomo/checker/plugins/checkers/model/imports.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211
  • pyomo/trunk/pyomo/checker/plugins/checkers/model/model.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211import re
  • pyomo/trunk/pyomo/checker/plugins/checkers/model/rule.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211
  • pyomo/trunk/pyomo/checker/plugins/checkers/py3k/__init__.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.checker.plugins.checkers.py3k.printing
    211import pyomo.checker.plugins.checkers.py3k.range
  • pyomo/trunk/pyomo/checker/plugins/checkers/py3k/printing.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import re
    211from pyomo.checker.plugins.checker import IterativeDataChecker
  • pyomo/trunk/pyomo/checker/plugins/checkers/py3k/range.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211from pyomo.checker.plugins.checker import IterativeTreeChecker
  • pyomo/trunk/pyomo/checker/plugins/checkers/sample/__init__.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.checker.plugins.checkers.sample.printing
  • pyomo/trunk/pyomo/checker/plugins/checkers/sample/printing.py

    r9252 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.checker.plugins.checker import IterativeTreeChecker
    211
  • pyomo/trunk/pyomo/checker/plugins/function.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211
  • pyomo/trunk/pyomo/checker/plugins/model.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211
  • pyomo/trunk/pyomo/checker/runner.py

    r9254 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import ast
    211
  • pyomo/trunk/pyomo/checker/script.py

    r7902 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110class ModelScript(object):
    211
  • pyomo/trunk/pyomo/checker/tests/__init__.py

    r4498 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
  • pyomo/trunk/pyomo/checker/tests/examples/model/ArrayValue_nomodel.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ArrayValue_varonly.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ArrayValue_wrong.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/DeprecatedModel_wrong.py

    r4525 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110model = Model()
  • pyomo/trunk/pyomo/checker/tests/examples/model/Imports_missing.py

    r4510 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
  • pyomo/trunk/pyomo/checker/tests/examples/model/Imports_wrong.py

    r4510 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from os import *
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelAccess_global.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelAccess_global2.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelArgument_firstarg.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelArgument_lastarg.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelArgument_norule.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelCreate_nocall.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelName_missing.py

    r4510 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelShadowing_noshadow.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelShadowing_shadow.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelValue_globalif.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelValue_globallistcomp.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelValue_multiif.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelValue_repeatif.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelValue_ruleif.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/ModelValue_rulelistcomp.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/model/NoneReturn_wrong.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/checker/tests/examples/py3k/PrintParens_1.py

    r6937 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110print "Hello, world!"
  • pyomo/trunk/pyomo/checker/tests/examples/py3k/PrintParens_2.py

    r6937 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110print "Hello, world!"
    211print "Hello, world!"
  • pyomo/trunk/pyomo/checker/tests/examples/py3k/XRange_1.py

    r4503 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110xrange(10)
  • pyomo/trunk/pyomo/checker/tests/test_examples.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import sys
    211import os
  • pyomo/trunk/pyomo/checker/tests/test_runner.py

    r9246 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import os
    211
  • pyomo/trunk/pyomo/checker/tests/test_script.py

    r9246 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import os
    211import tempfile
  • pyomo/trunk/pyomo/core/plugins/__init__.py

    r9246 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def load():
  • pyomo/trunk/pyomo/core/plugins/data/__init__.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210import pyomo.core.plugins.data.ampl
  • pyomo/trunk/pyomo/core/plugins/transform/__init__.py

    r9477 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
    88#  _________________________________________________________________________
    99
  • pyomo/trunk/pyomo/core/plugins/transform/dual_transformation.py

    r9477 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110#
    211# NOTE: deprecated code
  • pyomo/trunk/pyomo/core/plugins/transform/eliminate_fixed_vars.py

    r9475 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
    88#  _________________________________________________________________________
    99
  • pyomo/trunk/pyomo/core/plugins/transform/equality_transform.py

    r9475 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.util.plugin import alias
    211
  • pyomo/trunk/pyomo/core/plugins/transform/hierarchy.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.core.base import Transformation
    211
  • pyomo/trunk/pyomo/core/plugins/transform/linear_dual.py

    r9489 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/core/plugins/transform/model.py

    r9477 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/core/plugins/transform/nonnegative_transform.py

    r9475 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from inspect import isroutine
    211
  • pyomo/trunk/pyomo/core/plugins/transform/radix_linearization.py

    r9477 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
    88#  _________________________________________________________________________
    99
  • pyomo/trunk/pyomo/core/plugins/transform/relax_integrality.py

    r9490 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
    88#  _________________________________________________________________________
    99
  • pyomo/trunk/pyomo/core/plugins/transform/standard_form.py

    r9475 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.util.plugin import alias
    211
  • pyomo/trunk/pyomo/core/plugins/transform/util.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110# """
    211# Useful functions for transformations.
  • pyomo/trunk/pyomo/core/tests/__init__.py

    r853 r9519  
    1 """
    2 Pyomo tests
    3 """
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
     10# Pyomo tests
     11#
  • pyomo/trunk/pyomo/core/tests/data/__init__.py

    r4309 r9519  
    1 """
    2 ODBC and DB tests
    3 """
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
     10# ODBC and DB tests
     11#
  • pyomo/trunk/pyomo/core/tests/data/test_odbc_ini.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for odbc.ini file handler
  • pyomo/trunk/pyomo/core/tests/diet/__init__.py

    r4324 r9519  
    1 """
    2 Tests for diet examples
    3 """
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
     10# Tests for diet examples
     11#
  • pyomo/trunk/pyomo/core/tests/diet/test_diet.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210import os
  • pyomo/trunk/pyomo/core/tests/examples/__init__.py

    r900 r9519  
    1 """
    2 Pyomo tutorial tests
    3 """
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
     10# Pyomo tutorial tests
     11#
  • pyomo/trunk/pyomo/core/tests/examples/pmedian.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210from pyomo.environ import *
  • pyomo/trunk/pyomo/core/tests/examples/pmedian1.py

    r2005 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pmedian
    211
  • pyomo/trunk/pyomo/core/tests/examples/pmedian2.py

    r6784 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pmedian
    211
  • pyomo/trunk/pyomo/core/tests/examples/pmedian4.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210from pyomo.environ import *
  • pyomo/trunk/pyomo/core/tests/examples/test_amplbook2.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for complete examples
  • pyomo/trunk/pyomo/core/tests/examples/test_convert.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Test the Pyomo command-line interface
  • pyomo/trunk/pyomo/core/tests/examples/test_pyomo.py

    r9337 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Test the Pyomo command-line interface
  • pyomo/trunk/pyomo/core/tests/examples/test_tutorials.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Pyomo tutorials
  • pyomo/trunk/pyomo/core/tests/transform/__init__.py

    r9481 r9519  
    1 """
    2 Pyomo transformation tests
    3 """
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
     10# Pyomo transformation tests
     11#
  • pyomo/trunk/pyomo/core/tests/transform/test_linear_dual.py

    r9486 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    10 
    119#
    1210# Test transformations for linear duality
  • pyomo/trunk/pyomo/core/tests/transform/test_transform.py

    r9493 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for model transformations
  • pyomo/trunk/pyomo/core/tests/unit/__init__.py

    r853 r9519  
    1 """
    2 Pyomo unit tests
    3 """
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
     10# Pyomo unit tests
     11#
  • pyomo/trunk/pyomo/core/tests/unit/test_action.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for BuildAction() Objects
  • pyomo/trunk/pyomo/core/tests/unit/test_benders.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Get the directory where this script is defined, and where the baseline
    311# files are located.
    412#
     13
    514import os
    615import sys
  • pyomo/trunk/pyomo/core/tests/unit/test_block.py

    r9290 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Elements of a Block
  • pyomo/trunk/pyomo/core/tests/unit/test_block_model.py

    r9462 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Elements of a Model
  • pyomo/trunk/pyomo/core/tests/unit/test_bounds.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for nontrivial Bounds (_SumExpression, _ProductExpression)
  • pyomo/trunk/pyomo/core/tests/unit/test_check.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for BuildCheck() Objects
  • pyomo/trunk/pyomo/core/tests/unit/test_component.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for components
  • pyomo/trunk/pyomo/core/tests/unit/test_con.py

    r9387 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Elements of a Model
  • pyomo/trunk/pyomo/core/tests/unit/test_concrete.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Test behavior of concrete classes.
  • pyomo/trunk/pyomo/core/tests/unit/test_dataportal.py

    r9293 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for DataPortal objects
  • pyomo/trunk/pyomo/core/tests/unit/test_expr.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for expression generation
  • pyomo/trunk/pyomo/core/tests/unit/test_expression.py

    r9337 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import copy
    211
  • pyomo/trunk/pyomo/core/tests/unit/test_misc.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for pyomo.base.misc
  • pyomo/trunk/pyomo/core/tests/unit/test_model.py

    r9337 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Elements of a Model
  • pyomo/trunk/pyomo/core/tests/unit/test_mutable.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Elements of a Model
  • pyomo/trunk/pyomo/core/tests/unit/test_numvalue.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Python numeric values
  • pyomo/trunk/pyomo/core/tests/unit/test_obj.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Elements of a Model
  • pyomo/trunk/pyomo/core/tests/unit/test_param.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210# Unit Tests for Param() Objects
  • pyomo/trunk/pyomo/core/tests/unit/test_pickle.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Utility Functions
  • pyomo/trunk/pyomo/core/tests/unit/test_piecewise.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Piecewise
  • pyomo/trunk/pyomo/core/tests/unit/test_preprocess.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for model preprocessing
  • pyomo/trunk/pyomo/core/tests/unit/test_set.py

    r9273 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Set() Objects
  • pyomo/trunk/pyomo/core/tests/unit/test_suffix.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Suffix
  • pyomo/trunk/pyomo/core/tests/unit/test_util.py

    r9337 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Utility Functions
  • pyomo/trunk/pyomo/core/tests/unit/test_var.py

    r9318 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for Elements of a Model
  • pyomo/trunk/pyomo/core/tests/unit/test_var_set_bounds.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for nontrivial Bounds (_SumExpression, _ProductExpression)
  • pyomo/trunk/pyomo/core/tests/unit/uninstantiated_model_linear.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/core/tests/unit/uninstantiated_model_quadratic.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/dae/plugins/__init__.py

    r9315 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110def load():
    211    import pyomo.dae.plugins.colloc
  • pyomo/trunk/pyomo/environ/__init__.py

    r9465 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210#
  • pyomo/trunk/pyomo/environ/tests/__init__.py

    r9236 r9519  
    1 """
    2 Pyomo Environ unit tests
    3 """
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
     10# Pyomo Environ unit tests
     11#
  • pyomo/trunk/pyomo/environ/tests/test_environ.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Unit Tests for pyomo.base.misc
    311#
     12
    413import sys
    514import pyutilib.th as unittest
  • pyomo/trunk/pyomo/gdp/plugins/__init__.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def load():
  • pyomo/trunk/pyomo/mpec/plugins/__init__.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def load():
  • pyomo/trunk/pyomo/mpec/plugins/driver.py

    r9269 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import sys
    211import time
  • pyomo/trunk/pyomo/mpec/plugins/mpec1.py

    r9247 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/mpec/plugins/mpec2.py

    r9247 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/mpec/plugins/mpec3.py

    r9247 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/mpec/plugins/pathampl.py

    r9247 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    10 
    119
    1210import re
  • pyomo/trunk/pyomo/mpec/plugins/solver1.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.opt
    211import pyutilib.misc
  • pyomo/trunk/pyomo/mpec/plugins/solver2.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import pyomo.opt
    211import pyutilib.misc
  • pyomo/trunk/pyomo/neos/__init__.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Pyomo plugin for interacting with NEOS solvers
  • pyomo/trunk/pyomo/neos/kestrel.py

    r9239 r9519  
    44# package that is provided by NEOS:  http://neos.mcs.anl.gov
    55#
     6#  _________________________________________________________________________
     7#
     8#  Pyomo: Python Optimization Modeling Objects
     9#  Copyright (c) 2014 Sandia Corporation.
     10#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     11#  the U.S. Government retains certain rights in this software.
     12#  This software is distributed under the BSD License.
     13#  _________________________________________________________________________
    614
    715import io
  • pyomo/trunk/pyomo/neos/plugins/NEOS.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210import os
  • pyomo/trunk/pyomo/neos/plugins/__init__.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def load():
  • pyomo/trunk/pyomo/neos/plugins/kestrel_plugin.py

    r9247 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210import os
  • pyomo/trunk/pyomo/neos/tests/t1.py

    r9271 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210import pyomo.environ
  • pyomo/trunk/pyomo/neos/tests/test_neos.py

    r9271 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the FAST README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    10 
    119#
    1210# Test NEOS solver interface
  • pyomo/trunk/pyomo/openopt/FuncDesignerExt.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210__all__ = ['tanh', 'arcsinh', 'arccosh', 'arctanh']
  • pyomo/trunk/pyomo/openopt/__init__.py

    r9465 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.util.plugin import PluginGlobals
    211PluginGlobals.add_env("pyomo")
  • pyomo/trunk/pyomo/openopt/func_designer.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110__all__ = ['Pyomo2FuncDesigner']
    211
  • pyomo/trunk/pyomo/openopt/plugins/__init__.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19
    210def load():
  • pyomo/trunk/pyomo/openopt/tests/__init__.py

    r9362 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9#
    110# pyomo.openopt tests
     11#
  • pyomo/trunk/pyomo/openopt/tests/test1.py

    r9367 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyomo.environ import *
    211
  • pyomo/trunk/pyomo/openopt/tests/test_solvers.py

    r9376 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
    19#
    210# Test Pyomo models with OpenOpt solvers
  • pyomo/trunk/pyomo/openopt/tests/test_terms.py

    r9376 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110from pyutilib.misc import Options
    211import pyutilib.th as unittest
  • pyomo/trunk/pyomo/opt/base/__init__.py

    r9242 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    10 
    119
    1210#import pyomo.opt.base.log_config as _config_
  • pyomo/trunk/pyomo/opt/base/convert.py

    r9247 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/opt/base/error.py

    r9242 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/opt/base/formats.py

    r9242 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/opt/base/log_config.py

    r9239 r9519  
     1#  _________________________________________________________________________
     2#
     3#  Pyomo: Python Optimization Modeling Objects
     4#  Copyright (c) 2014 Sandia Corporation.
     5#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     6#  the U.S. Government retains certain rights in this software.
     7#  This software is distributed under the BSD License.
     8#  _________________________________________________________________________
     9
    110import logging
    211from pyutilib.misc import LogHandler
  • pyomo/trunk/pyomo/opt/base/opt_config.py

    r9242 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/opt/base/problem.py

    r9247 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/opt/base/results.py

    r9247 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/opt/base/solvers.py

    r9387 r9519  
    22#
    33#  Pyomo: Python Optimization Modeling Objects
    4 #  Copyright (c) 2008 Sandia Corporation.
    5 #  This software is distributed under the BSD License.
     4#  Copyright (c) 2014 Sandia Corporation.
    65#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
    76#  the U.S. Government retains certain rights in this software.
    8 For more information, see the Pyomo README.txt file.
     7This software is distributed under the BSD License.
    98#  _________________________________________________________________________
    109
  • pyomo/trunk/pyomo/opt/plugins/__init__.py