Giter Site home page Giter Site logo

copt's Introduction

COPT: A C++ optimization open library

Copyright (C) MathU

COPT is a C++ based optimization open library. The very simple idea is to provide a complete computing library for basic optimization algorithms. It is powered by MathU organization in University of Science and Technology of China (USTC). The leaders are Zhouwang Yang, associated professor in USTC and Ruimin Wang, PhD candidate in USTC.

The library contains basic mathematical types like vector, matrix, function and solver. Matlab-like element access and assignment are allowed. It is quite simple to claim mathematical types after fixing basic traits.


Development Guide

This is the introduction and development for C++ based open source library COPT focusing on optimization problems. Current version of COPT is 0.0.1 and the document is only for developers right now. This document tells you how to install COPT on your personal computer and further develop optimization algorithms based on COPT.

Installation Guide

COPT currently depends on three third party libraries as BLAS, LAPACK and SuiteSparse. COPT is developed on OS X system and it currently only support OS X and Linux operation system. MinGW on windows is another choice but not a good one. Now installation of COPT on OS X is introduced. BLAS and LAPACK are built-in libraries for OS X as default. Thus the only thing you have to do is to install SuiteSparse. At first, command line tool must be installed which can be easily done by downloading it in AppStore. Then you download the source code of SuiteSparse on http://faculty.cse.tamu.edu/davis/suitesparse.html. After that, remove the file “SuiteSparse_config.mk” in the sub-dictionary ‘SuiteSparse_config’ and rename the file “SuiteSparse_config_mac.mk” to “SuiteSparse_config.mk”. Then just type ‘make’ and ‘sudo make install’ in command line tool. The installation on Linux is not complex either. Just type the following commands in terminal: “sudo apt-get libblas-dev”, “sudo apt-get liblapack-dev” and “sudo apt-get libsuitesparse-dev”.

Now the dependency has been installed and you can clone or fork our codes on https://github.com/fromradio/COptdev. Then you can use the library now and you can type ‘make all’ to generate all examples written by us.

Development Guide

COPT is a C++ based library which uses a lot of C++ features. The library mainly contains the following parts: the basic types for describing mathematical objects, the optimization problems and the optimization algorithms. To use COPT, one only needs to add the header file “Header” under folder include for optimization part and “IO” for input/output.

1. Mathematical types

The mathematical types of COPT are all contained in ‘KernelTrait’ which takes the type of scalar and integer as template. The default templates are set as ‘double’ and ‘int’. However, one can modify the kernel he or she wants to use for instance one can easily define a complex kernel via the following code:

->typedef COPT::KernelTrait<std::complex,int> kernel;<-

copt's People

Contributors

fromradio avatar copt-mathu avatar

Watchers

James Cloos avatar  avatar

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.