Changeset 2184


Ignore:
Timestamp:
Jan 27, 2010 5:53:22 PM (10 years ago)
Author:
wehart
Message:

Renaming this examples directory, and editing
the test scripts.

Location:
coopr.colin/trunk/examples/colin
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • coopr.colin/trunk/examples/colin/README.txt

    r1078 r2184  
    1 Examples for coopr.opt:
     1Examples for coopr.colin:
    22
    3  - colin: Illustrations of the use of coopr.opt's optimizers and COLIN
     3 - colin: Illustrations of the use of coopr.colin's optimizers and COLIN
    44        XML interface.
  • coopr.colin/trunk/examples/colin/colin/example_fn1

    r2173 r2184  
    1313
    1414import sys
    15 from coopr.opt import colin
     15from coopr.colin import *
    1616
    17 class Problem(colin.OptProblem):
     17class Problem(OptProblem):
    1818
    1919    def __init__(self):
    20         self.response_types = [colin.response_enum.FunctionValue, \
    21                                 colin.response_enum.Gradient, \
    22                                 colin.response_enum.NonlinearConstraintValues]
     20        self.response_types = [response_enum.FunctionValue, \
     21                                response_enum.Gradient, \
     22                                response_enum.NonlinearConstraintValues]
    2323
    2424    def function_value(self, point):
  • coopr.colin/trunk/examples/colin/colin/example_fn2

    r2173 r2184  
    1313
    1414import sys
    15 from coopr.opt import colin
     15from coopr.colin import *
    1616
    17 class Problem(colin.OptProblem):
     17class Problem(OptProblem):
    1818
    1919    def __init__(self):
    20         self.response_types = [colin.response_enum.FunctionValues, \
    21                                 colin.response_enum.NonlinearConstraintValues]
     20        self.response_types = [response_enum.FunctionValues, \
     21                                response_enum.NonlinearConstraintValues]
    2222
    2323    def function_values(self, point):
  • coopr.colin/trunk/examples/colin/colin/example_fn3

    r2173 r2184  
    1313import sys
    1414import random
    15 from coopr.opt import colin
     15from coopr.colin import *
    1616
    17 class Problem(colin.OptProblem):
     17class Problem(OptProblem):
    1818
    1919    def __init__(self):
    20         self.response_types = [colin.response_enum.FunctionValue, \
    21                                 colin.response_enum.NonlinearConstraintValues]
     20        self.response_types = [response_enum.FunctionValue, \
     21                                response_enum.NonlinearConstraintValues]
    2222
    2323    def function_value(self, point):
  • coopr.colin/trunk/examples/colin/colin/example_fn4

    r2173 r2184  
    1414
    1515import sys
    16 from coopr.opt import colin
     16from coopr.colin import *
    1717
    18 class Problem(colin.OptProblem):
     18class Problem(OptProblem):
    1919
    2020    def __init__(self):
    21         self.response_types = [colin.response_enum.FunctionValue, \
    22                                 colin.response_enum.Gradient, \
    23                                 colin.response_enum.NonlinearConstraintValues]
     21        self.response_types = [response_enum.FunctionValue, \
     22                                response_enum.Gradient, \
     23                                response_enum.NonlinearConstraintValues]
    2424
    2525    def function_value(self, point):
Note: See TracChangeset for help on using the changeset viewer.