Changeset 1226 for trunk/test_more


Ignore:
Timestamp:
Jun 16, 2008 8:41:24 AM (12 years ago)
Author:
bradbell
Message:

trunk: Add an ipopt nonlinear programming example.

configure: changes in configure.ac and propagated by autoconf
ipopt_cppad_nlp.cpp: example ipopt nlp class that uses CppAD.
ipopt_cppad.cpp: example program that uses ipopt_cppad_nlp class.
ipopt_cppad_nlp.hpp: prototype for ipopt_cppad_nlp class.
example/makefile.am: conditional complilation of ipopt_cppad.
example/makefile.in: changes in makefile.am and propagated by automake.
mul_level_adolc.cpp: add cross reference to configure.
ode_taylor_adolc.cpp: add cross reference to configure.
*/test_one.sh: conditional addition of flags for adolc and ipopt libraries.
example.cpp: add ipopt_cppad example.
example.vcproj: add ipopt_cppad example.
jacobian.cpp: an addition test.
test_more/makefile.am: add jacobian.cpp.
test_more/makefile.in: changes in makefile.am and propagated by automake.
test_more.cpp: add jacobian test.
test_more.vcproj: add jacobian test.
*/makefile.in: changes in configure.ac and propagated by autoconf.
configure.ac: Add IPOPT_DIR option to configure command line.
example_list.omh: add ipopt_cppad.cpp example.
install_unix.omh.in: add IPOPT_DIR option to configure command line.

Location:
trunk/test_more
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/makefile.am

    r1121 r1226  
    7474        from_base.cpp \
    7575        fun_check.cpp \
     76        jacobian.cpp \
    7677        log.cpp \
    7778        log_10.cpp \
  • trunk/test_more/makefile.in

    r1131 r1226  
    4848        div.cpp div_eq.cpp div_zero_one.cpp erf.cpp exp.cpp \
    4949        for_hess.cpp for_sparse_jac.cpp forward.cpp from_base.cpp \
    50         fun_check.cpp log.cpp log_10.cpp mul.cpp mul_eq.cpp \
    51         mul_zero_one.cpp near_equal_ext.cpp neg.cpp \
     50        fun_check.cpp jacobian.cpp log.cpp log_10.cpp mul.cpp \
     51        mul_eq.cpp mul_zero_one.cpp near_equal_ext.cpp neg.cpp \
    5252        ode_err_control.cpp poly.cpp pow.cpp pow_int.cpp \
    5353        romberg_one.cpp rosen_34.cpp runge_45.cpp reverse.cpp \
     
    6666        erf.$(OBJEXT) exp.$(OBJEXT) for_hess.$(OBJEXT) \
    6767        for_sparse_jac.$(OBJEXT) forward.$(OBJEXT) from_base.$(OBJEXT) \
    68         fun_check.$(OBJEXT) log.$(OBJEXT) log_10.$(OBJEXT) \
    69         mul.$(OBJEXT) mul_eq.$(OBJEXT) mul_zero_one.$(OBJEXT) \
    70         near_equal_ext.$(OBJEXT) neg.$(OBJEXT) \
     68        fun_check.$(OBJEXT) jacobian.$(OBJEXT) log.$(OBJEXT) \
     69        log_10.$(OBJEXT) mul.$(OBJEXT) mul_eq.$(OBJEXT) \
     70        mul_zero_one.$(OBJEXT) near_equal_ext.$(OBJEXT) neg.$(OBJEXT) \
    7171        ode_err_control.$(OBJEXT) poly.$(OBJEXT) pow.$(OBJEXT) \
    7272        pow_int.$(OBJEXT) romberg_one.$(OBJEXT) rosen_34.$(OBJEXT) \
     
    139139INSTALL_SCRIPT = @INSTALL_SCRIPT@
    140140INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
     141IPOPT_DIR = @IPOPT_DIR@
    141142LDFLAGS = @LDFLAGS@
    142143LIBOBJS = @LIBOBJS@
     
    256257        from_base.cpp \
    257258        fun_check.cpp \
     259        jacobian.cpp \
    258260        log.cpp \
    259261        log_10.cpp \
     
    362364@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/from_base.Po@am__quote@
    363365@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fun_check.Po@am__quote@
     366@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jacobian.Po@am__quote@
    364367@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Po@am__quote@
    365368@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log_10.Po@am__quote@
  • trunk/test_more/test_more.cpp

    r1179 r1226  
    2525extern bool Atan(void);
    2626extern bool Atan2(void);
     27extern bool base_adolc(void);
    2728extern bool Compare(void);
    2829extern bool CompareChange(void);
     
    4344extern bool FromBase(void);
    4445extern bool FunCheck(void);
     46extern bool jacobian(void);
    4547extern bool Log(void);
    4648extern bool Log10(void);
     
    7577extern bool VecADPar(void);
    7678extern bool VecUnary(void);
    77 
    78 # ifdef CPPAD_ADOLC_TEST
    79 extern bool base_adolc(void);
    80 # endif
    8179
    8280namespace {
     
    136134        ok &= Run( FromBase,        "FromBase"       );
    137135        ok &= Run( FunCheck,        "FunCheck"       );
     136        ok &= Run( jacobian,        "jacobian"       );
    138137        ok &= Run( Log,             "Log"            );
    139138        ok &= Run( Log10,           "Log10"          );
  • trunk/test_more/test_more.vcproj

    r1121 r1226  
    193193                        </File>
    194194                        <File
     195                                RelativePath=".\jacobian.cpp">
     196                        </File>
     197                        <File
    195198                                RelativePath=".\log.cpp">
    196199                        </File>
  • trunk/test_more/test_one.sh

    r1077 r1226  
    11# -----------------------------------------------------------------------------
    2 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-07 Bradley M. Bell
     2# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
    33#
    44# CppAD is distributed under multiple licenses. This distribution is under
     
    3232        -g -Wall -ansi -pedantic-errors
    3333        -std=c++98 -DCPPAD_ADOLC_TEST
    34         -I.. -I/usr/include/boost-1_33_1
    35         -I$HOME/adolc_base/include
    36         -L$HOME/adolc_base/lib -ladolc"
     34        -I.. -I/usr/include/boost-1_33_1
     35"
     36if [ -e $HOME/adolc_base/inclue/adouble.h ]
     37then
     38        cmd="$cmd -I$HOME/adolc_base/include -L$HOME/adolc_base/lib -ladolc"
     39fi
    3740echo $cmd
    3841$cmd
Note: See TracChangeset for help on using the changeset viewer.