GithubHelp home page GithubHelp logo

Comments (7)

mlubin avatar mlubin commented on August 18, 2024

cc @bqpd @whoburg

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

Porting:The dgopt/scopt library will not be merged into the mosek shared library. It is perfectly possible to port the code to julia; there used to be a port for both Java and Python, and Julia is infinitely more suited for the task.
Licensing: If you port scopt/dgopt to Julia there will be no licensing or copyright issues of any kind, and the code can be distributed under the same license as the rest of Mosek.jl.

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

By the way: The libmosekscopt library is not compatible with the scopt.h distributed with the examples. If you want to use it from Julia the relevant headers are included below. If you look in the Python interface (mosek/__init__.py, around line 2015) you can see how it is used.

typedef
enum MSKscopre_enum
  {
    MSK_OPR_ENT = 0,
    MSK_OPR_EXP = 1,
    MSK_OPR_LOG = 2,
    MSK_OPR_POW = 3
  }
MSKscopre;

typedef struct
{
  int        numcon;      /* Number of constraints. */
  int        numvar;      /* Number of variables.   */
  int        numopro;
  MSKscopre *opro;
  int       *oprjo;
  double    *oprfo;
  double    *oprgo;
  double    *oprho;

  int        numoprc;
  MSKscopre *oprc;
  int       *opric;
  int       *oprjc;
  double    *oprfc;
  double    *oprgc;
  double    *oprhc;

  int       *ptrc;
  int       *subc;

  int       *ibuf; 
  MSKint32t *zibuf;
  double    *zdbuf;

  /* Log */
  FILE * log;

  /* Error data */
  char      msg[1024];
  int       res;
} nlhandt;

typedef void *schand_t;

typedef int (MSKAPI * MSK_scwritefunc) (void * handle, char * s);
typedef int (MSKAPI * MSK_screadfunc)  (char * buffer, size_t len, void * handle);

MSKrescodee MSKAPI
MSK_scbegin(MSKtask_t task,
            int        numopro,
            MSKscopre *opro,
            int       *oprjo,
            double    *oprfo,
            double    *oprgo,
            double    *oprho,
            int       numoprc,
            MSKscopre *oprc,
            int       *opric,
            int       *oprjc,
            double    *oprfc,
            double    *oprgc,
            double    *oprhc,
            schand_t  *sch);

int MSKAPI MSK_scwrite(MSKtask_t   task,
                schand_t    sch,
                void      * writehand,
                MSK_scwritefunc writecb);

int MSKAPI MSK_scread(MSKtask_t task,
               schand_t  *sch,
               void      *handle,
               MSK_screadfunc readcb);

int MSKAPI MSK_scend(MSKtask_t task,
                     schand_t  sch);

MSKint32t MSKAPI
SCeval(MSKuserhandle_t nlhandle,
       const MSKrealt          *xx,
       MSKrealt           yo,
       const MSKrealt    *yc,
       MSKrealt          *objval,
       MSKint32t         *numgrdobjnz,
       MSKint32t         *grdobjsub,
       MSKrealt          *grdobjval,
       MSKint32t          numi,
       const MSKint32t   *subi,
       MSKrealt          *conval,
       const MSKint32t   *grdconptrb,
       const MSKint32t   *grdconptre,
       const MSKint32t   *grdconsub,
       MSKrealt          *grdconval,
       MSKrealt          *grdlag,
       MSKint32t          maxnumhesnz,
       MSKint32t         *numhesnz,
       MSKint32t         *hessubi,
       MSKint32t         *hessubj,
       MSKrealt          *hesval);

MSKint32t MSKAPI 
SCstruc(MSKuserhandle_t    nlhandle,
        MSKint32t          *numgrdobjnz,
        MSKint32t          *grdobjsub,
        MSKint32t           i,
        MSKint32t          *convali,
        MSKint32t          *grdconinz,
        MSKint32t          *grdconisub,
        MSKint32t          yo,
        MSKint32t          numycnz,
        MSKCONST MSKint32t *ycsub,
        MSKint32t          maxnumhesnz,
        MSKint32t          *numhesnz,
        MSKint32t          *hessubi,
        MSKint32t          *hessubj);

MSKint32t MSKAPI
MSK_scattach(MSKtask_t task,
             MSKuserhandle_t nlhandle);

MSKint32t MSKAPI
MSK_scdetach(MSKtask_t task);

from mosek.jl.

joehuchette avatar joehuchette commented on August 18, 2024

Thanks, @ulfworsoe!

from mosek.jl.

yeesian avatar yeesian commented on August 18, 2024

Is anyone working on this? If not, I don't mind giving it a shot

from mosek.jl.

joehuchette avatar joehuchette commented on August 18, 2024

Give it a go!

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

Closing ancient issues.

from mosek.jl.

Related Issues (20)

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.