GithubHelp home page GithubHelp logo

admb-project / admb Goto Github PK

View Code? Open in Web Editor NEW
64.0 64.0 19.0 130.07 MB

AD Model Builder

Home Page: http://admb-project.org

License: Other

Makefile 3.04% C++ 85.65% R 0.21% C 3.06% Emacs Lisp 0.40% TeX 0.12% Shell 0.86% Inno Setup 0.22% AppleScript 0.01% Awk 0.03% Python 0.17% XSLT 0.03% Batchfile 0.43% Lex 5.23% GDB 0.09% MATLAB 0.31% PowerShell 0.01% VBScript 0.10% Visual Basic 6.0 0.01% CSS 0.03%

admb's People

Contributors

allanhicks avatar arni-magnusson avatar cole-monnahan-noaa avatar colemonnahan avatar dobieszn avatar e-perl-noaa avatar fishfollower avatar johnoel avatar johnrsibert avatar jonrh avatar smartell avatar waffle-iron avatar wstockhausen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

admb's Issues

broken on Windows

@johnoel I currently cannot build on my Windows x64 machine using Mingw and msys. I was able to build previously. I am not sure what I should do. I have been able to build in the past, and I know that as of 32a2f38 it was working for me. What should I do to try to debug? Any ideas are greatly appreciated. Thanks.

Here is some output from the console of the failed build.
make[5]: Entering directory /c/admb/contrib/ecolib' ../../admb.cmd -c Gompertz.cpp cp Gompertz.obj ../../build/objects/dist/contrib-saflp-Gompertz.obj ../../admb.cmd: line 1: @echo: command not found ../../admb.cmd: line 2: @REM: command not found ../../admb.cmd: line 3: syntax error near unexpected token ('
../../admb.cmd: line 3: @REM Copyright 2013 (c) ADMB Foundation' cp: cannot stat Gompertz.obj': No such file or directory
../admb-rules.mak:27: recipe for target ../../build/objects/dist/contrib-saflp-Gompertz.obj' failed make[5]: *** [../../build/objects/dist/contrib-saflp-Gompertz.obj] Error 1 make[5]: Leaving directory /c/admb/contrib/ecolib'
GNUmakefile:153: recipe for target contrib-ecolib' failed make[4]: *** [contrib-ecolib] Error 2 make[4]: Leaving directory /c/admb/contrib'
GNUmakefile:52: recipe for target all' failed make[3]: *** [all] Error 2 make[3]: Leaving directory /c/admb/contrib'
Makefile:80: recipe for target g++-contrib' failed make[2]: *** [g++-contrib] Error 2 make[2]: Leaving directory /c/admb'
Makefile:71: recipe for target g++-all' failed make[1]: *** [g++-all] Error 2 make[1]: Leaving directory /c/admb'
Makefile:5: recipe for target `all' failed
make: *** [all] Error 2

Update documentation

11.4 manual doesn't appear to be online.

Also, adding text to describe linkage of "ragged array" jargon with number_vectors and vector_vectors would be useful within the manual (description here is quite light).

cumd_gamma function

The following call to cumd_gamma(x,a) using cumd_gamma(257.812,258.714); results in the following error in user

"a too large, ITMAX too small in routine gser"

Solution seems to be to increase ITMAX = 100 to ITMAX = 200 in dfgammp.cpp and cgamdev.cpp

Problem with building in home directory

I had an issue with building in the home directory "c:~\admb" on a windows 64x machine using mingw and msys. The issue was fixed by moving to "c:\admb". See below for emails between @johnoel and @kellijohnson

On 3/31/2016 11:21 AM, Johnoel Ancheta wrote:
Move or clone the admb directory to
c:\admb
Then
$ cd /c/admb
Try and rebuild
$ make clean
$ make

On Thu, Mar 31, 2016 at 5:42 AM, Kelli Johnson wrote:
I am trying to build admb from source on a windows machine, where I
have cloned the github repo and I have mingw and msys. When I type
make I get the following error:
make[3]: Entering directory '/c/~admb/src'
make --directories=src CC=gcc CXX=g++ SHARED=-shared shared
mkdir -p ../build/objects/dist/
g++ -shared -o ../build/dist/lib/libadmb.so -Wl,--whole-archive
../build/dist/l
ib/libadmb-shared.a -Wl,--no-whole-archive
../build/dist/lib/libadmb-shared.a: member
../build/dist/lib/libadmb-shared.a(sh
ared-saflp-linad99-adglobl.obj) in archive is not an object
collect2.exe: error: ld returned 1 exit status
make[3]: *** [shared] Error 1

tiny_ad pbeta makefile fails for windows

For Windows, the exports below fail to set the flags properly in the shell..

compile: tiny_ad
tiny_ad: tiny_ad.tpl
export CXXFLAGS=-D_USE_MATH_DEFINES
export LDFLAGS=-lm
admb tiny_ad
export CXXFLAGS=
export LDFLAGS=

Objective function output precision

The precision of reported objective function value in the .par output file should be increased. See nh99/model.cpp for source code, void initial_params::save()

Does any one depend on the number digits reported in the .par file to generate customized reports?

Creating a vector with both bounds as init_ints causes ambiguous function error

To reproduce this error, open simple.tpl and add these lines to the DATA_SECTION:

init_int sage
init_int nage
vector age(sage,nage)

This worked fine in previous versions but now gives an ambiguity error in dvector.h. There are two allocate functions which match. They are:

void allocate(int ncl, int ncu);
void allocate(const ad_integer &, const index_type &);

Both those definitions were there in the previous versions and have been since inception so something else has changed in the ADMB source to cause this. The error appeared when I used the current source, pulled and compiled on Nov 4, 2015.

Higher dimensions not parsing in DATA_SECTION

Reported by Jim Ianelli
Example

File t.tpl

DATA_SECTION
6darray d6(1,1,1,2,1,3,1,4,1,5,1,6);
PARAMETER_SECTION
init_number x;
objective_function_value ff
PROCEDURE_SECTION
ff=x*x;

admb script outputs

$ admb t.tpl

*** Parse: t.tpl
tpl2cpp t || tpl2rem t

Error: could not parse "t.tpl".

warning -- creating unallocated 5darray() at line 2
Error in line 2 while reading
(
Error in line 2 while reading
d
make: *** [all] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.