SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MKLMulticlassGLPK.h
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2009 Alexander Binder
00008  * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society
00009  *
00010  * Update to patch 0.10.0 - thanks to Eric aka Yoo (thereisnoknife@gmail.com)
00011  *
00012  */
00013 
00014 #ifndef MKLMulticlassGLPK_H_
00015 #define MKLMulticlassGLPK_H_
00016 
00017 #include <vector>
00018 #include <shogun/base/SGObject.h>
00019 #include <shogun/classifier/mkl/MKLMulticlassOptimizationBase.h>
00020 
00021 namespace shogun
00022 {
00028 class MKLMulticlassGLPK: public MKLMulticlassOptimizationBase
00029 {
00030 public:
00034    MKLMulticlassGLPK();
00038    virtual ~MKLMulticlassGLPK();
00039 
00046     virtual void setup(const int32_t numkernels2);
00047 
00056     virtual void addconstraint(const ::std::vector<float64_t> & normw2,
00057             const float64_t sumofpositivealphas);
00058 
00064     virtual void computeweights(std::vector<float64_t> & weights2);
00065 
00067     virtual const char* get_name() const { return "MKLMulticlassGLPK"; }
00068 
00069 protected:
00074    MKLMulticlassGLPK(MKLMulticlassGLPK & gl);
00079    MKLMulticlassGLPK operator=(MKLMulticlassGLPK & gl);
00080 
00081 protected:
00083     int32_t numkernels;
00085    void* linearproblem;
00086 };
00087 }
00088 
00089 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation