GithubHelp home page GithubHelp logo

jwallen / pydqed Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 221 KB

A Python wrapper for the DQED constrained nonlinear optimization code

Shell 1.51% CSS 3.57% Python 10.04% Fortran 83.96% C 0.91%

pydqed's Introduction

PyDQED - A Python wrapper for the DQED constrained nonlinear optimization code

Introduction

PyDQED provides a means for Python code to utilize DQED, a bounded, constrained nonlinear optimization code. DQED is publicly available, and is distributed with PyDQED. PyDQED provides a Python extension type for DQED, which in turn provides a Pythonic means of setting the solver options, providing residual and jacobian functions, and running the solver.

License

Copyright (c) 2011 by Joshua W. Allen ([email protected]).

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Dependencies

PyDQED has been tested on Python versions 2.5 and 2.6. It may or may not work for other Python versions.

There are several Python dependencies that you must install before installing PyDQED:

  • Python (versions 2.5.x and 2.6.x are known to work)
  • NumPy (version 1.3.0 or later is recommended)
  • Cython (version 0.12.1 or later is recommended)

In addition, you will also need a Fortran compiler and a C compiler that produce object files that can interoperate. The gfortran and gcc compiles from the GNU Compiler Collection are known to work. On Windows the MinGW compiler collection provides these compilers.

The code for DQED has been provided with the PyDQED package. The license for DQED is different than that of the PyDQED wrapper code. You are responsible for knowing and abiding by all licenses associated with DQED as well as with PyDQED.

Installation

Windows

The provided batch script will compile DQED and the PyDQED wrapper code. This script presumes that you have the 32-bit version of the MinGW C and Fortran compilers installed. Once you have run the batch script, you can install PyDQED into your Python packages if you desire by running the following command from the base package directory:

> python setup.py install

Linux

A Makefile has been provided that can be used to compile DQED and the PyDQED wrapper code. To use, invoke the following command from the base package directory:

$ make

This command will build PyDQED in-place, rather than installing it to your Python package directory. If you wish to formally install PyDQED, run the following command from the base package directory after the make command (you may need root privileges for this):

$ python setup.py install

Mac OS X

Very much like the linux, but if you have installed gfortran via homebrew , (brew install gcc) then you may need to tell the makefile where to find the libraries:

$ export LIBRARY_PATH=$(dirname `gfortran -print-libgcc-file-name`)
$ make
$ make install

pydqed's People

Contributors

jwallen avatar rwest avatar

Stargazers

Nuno Edgar Nunes Fernandes avatar Chaz Reid avatar Pierre Bhoorasingh avatar NICK VANDEWIELE avatar Amrit Jalan avatar  avatar

Watchers

James Cloos avatar Nuno Edgar Nunes Fernandes avatar

Forkers

ajalan pierrelb

pydqed's Issues

Missing .bat file

Instructions (\documentation\source\users\installation.rst) refer to a batch file that does not actually exist in the root directory. The Makefile still works fine for installation but I figured I'd bring it to attention.

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.