Installling PSOPT in Windows 7 & VS 2010

320 views
Skip to first unread message

Balamurugan Subramanian

unread,
Jul 29, 2015, 2:41:34 PM7/29/15
to PSOPT users group
Dear all,

I know this post may be duplicate, but still I couldn't able to install PSOPT.

Any good installation guide may help me.

Thank you

Alessandro Peloni

unread,
Jul 30, 2015, 11:00:43 AM7/30/15
to PSOPT users group, propb...@gmail.com
Hi Balamurugan,

I downloaded a couple of years ago a very good guide written and posted in this forum by Musa Audu (even if I don't find it anymore in the list of posts).
I found it very useful, even if I had to change slightly some parts.

Attached is the installation guide by Musa Audu, and in red are my comments. I wrote those comments mainly for myself, but they can be useful for you as well (at least, I hope so ;) ).

Tell me if you find this guide useful as well, and if you need more help regarding missing files or something similar.

I use Windows 7, VS 2010 Express and SDK7.1.


Cheers,
Alessandro
INSTALLING PSOPT IN WINDOWS.docx
Message has been deleted

Bala Murugan Subramanian

unread,
Aug 1, 2015, 7:01:06 AM8/1/15
to Alessandro Peloni, PSOPT users group


Hi Alessandro

Thanks for sharing the information with me.

But unfortunately, I have some doubts. I am unsuccessful in installing the PSOPT.

I have attached the  word file with screen shot and makefile.vc from dmatrix/lib and PSOPT/lib

You please help me out to sort out these issues. 
--
Thanks & Regards
_________________________________________
Balamurugan Subramanian                          

 
Error during installation procedure for PSOPT.docx
Makefile [from dmatrix lib].vc
Makefile [from PSOPT Psopt3 PSOPT lib].vc

Alessandro Peloni

unread,
Aug 3, 2015, 5:00:47 AM8/3/15
to PSOPT users group
Hi Balamurugan,

sorry for the late reply, but I was away for the weekend.
I think your main problem is due to the function arithchk.c, which apparently has some errors (the same errors as the ones Alessandro has reported, in the other post). I checked my function, and I don't have any ssize_t at those lines you guys reported the errors, so perhaps can be that the version you have downloaded now is slightly different respect to the one I have. I attached the function I have. Try to use mine and see if those particular issues are solved.

Cheers,
Alessandro

On Wednesday, 29 July 2015 19:41:34 UTC+1, Balamurugan Subramanian wrote:
arithchk.c

Balamurugan Subramanian

unread,
Aug 3, 2015, 10:31:05 AM8/3/15
to PSOPT users group
Hi Alessandro Peloni,

Thanks for your reply.

I able to compile all .lib's like libCoinBlas, libCoinHSL, IibIPOPT, vcf2c , except LAPACK.

I have error in dlamch.f file

I request you share this fortran file also

Alessandro Peloni

unread,
Aug 3, 2015, 1:10:47 PM8/3/15
to PSOPT users group
Hi,

attached is my version of dlamch.f

Chhers,
Alessandro
 

On Wednesday, 29 July 2015 19:41:34 UTC+1, Balamurugan Subramanian wrote:
dlamch.f

Balamurugan Subramanian

unread,
Aug 3, 2015, 10:20:44 PM8/3/15
to PSOPT users group
HI,

Yes I could able to generate all lib files. Thank you very much for your help.

Alessandro Peloni

unread,
Aug 4, 2015, 4:13:34 AM8/4/15
to PSOPT users group
Hi,

I'm glad you were able to solve your installation problems. Now enjoy PSOPT! ;)

Cheers,
Alessandro

On Wednesday, 29 July 2015 19:41:34 UTC+1, Balamurugan Subramanian wrote:

Chandra

unread,
Aug 4, 2015, 9:41:42 AM8/4/15
to PSOPT users group
Provide the link to download CXSparse, UFConfig and lusol.
The following links provided in your installation guide is not working
http://www.cise.ufl.edu/research/sparse/UFconfig/current/
http://www.stanford.edu/group/SOL/ software/lusol/lusol.zip 
www.cise.ufl.edu/research/sparse/ UFconfig/current/UFconfig.tar.gz


Also guide to bulid the libdmatrix.lib and libpsopt.lib using alternative route (IDE) also.

Markus Sauermann

unread,
Aug 4, 2015, 9:52:28 AM8/4/15
to PSOPT users group


On Tuesday, August 4, 2015 at 3:41:42 PM UTC+2, Chandra wrote:
Provide the link to download CXSparse, UFConfig and lusol.
The following links provided in your installation guide is not working
http://www.cise.ufl.edu/research/sparse/UFconfig/current/
http://www.stanford.edu/group/SOL/ software/lusol/lusol.zip 
www.cise.ufl.edu/research/sparse/ UFconfig/current/UFconfig.tar.gz


Also guide to bulid the libdmatrix.lib and libpsopt.lib using alternative route (IDE) also.
...


Hi,

I use as a replacement for XCSparse and UFconfig the now available suitesparse:
http://faculty.cse.tamu.edu/davis/suitesparse.html

Lusol is still downloadable from that link.

Best wishes
Markus

Chandra

unread,
Aug 4, 2015, 10:43:17 AM8/4/15
to PSOPT users group
Thanks  for your reply

Which version I should use?

Alessandro Peloni

unread,
Aug 4, 2015, 10:59:43 AM8/4/15
to PSOPT users group

Cheers,
Alessandro


On Wednesday, 29 July 2015 19:41:34 UTC+1, Balamurugan Subramanian wrote:

Chandra

unread,
Aug 4, 2015, 1:59:27 PM8/4/15
to PSOPT users group
Thanks Alessandro Peloni.

I am not able to compile only one library 'libpsopt.lib' (all .lib are able to compile except psopt lib)

Balamurugan Subramanian

unread,
Aug 4, 2015, 3:47:50 PM8/4/15
to PSOPT users group
Me too ended up with the same problem

Balamurugan Subramanian

unread,
Aug 5, 2015, 4:47:57 AM8/5/15
to PSOPT users group
yes I Could able compile libpsopt.lib also



On Tuesday, August 4, 2015 at 11:29:27 PM UTC+5:30, Chandra wrote:

Durga Manju

unread,
Aug 5, 2015, 6:58:19 AM8/5/15
to PSOPT users group
hi,

I have ended up with the error in dmatrixv.obj file. 

1. libmatrix.lib(dmatrix.obj): error LNK2019: unresolved external symbol dgelqf_referenced in function " class Dmatrix 7 --cdecl LQ
similalry for SVD SVDSolve LSMNSolve

I have compiled all the libraries in windows 7(64 bit) and vs2010. 

Balamurugan Subramanian

unread,
Aug 5, 2015, 9:46:17 AM8/5/15
to PSOPT users group
HI,

I could able to install PSOPT successfully.

Thank you very much for your help.

On Thursday, July 30, 2015 at 12:11:34 AM UTC+5:30, Balamurugan Subramanian wrote:

Alessandro Gabrielli

unread,
Aug 6, 2015, 6:21:18 AM8/6/15
to PSOPT users group
Hi Alessandro,
when I try to create the dmatrix lib a get this error: can you help fix it?



Setting environment for using Microsoft Visual Studio 2010 x64 tools.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd C:\Psopt3

C:\Psopt3>nmake -f Makefile.vc all

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        copy UFconfig.h CXSparse\Include
        1 file copiati.
        copy Makefile.cxsparse.vc CXSparse\Source\Makefile.vc
        1 file copiati.
        cd CXSparse\Source
        "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.
exe" -f Makefile.vc

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ..\..
        copy Makefile.lusol.vc lusol\csrc\Makefile.vc
        1 file copiati.
        cd lusol\csrc
        "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.
exe" -f Makefile.vc

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ..\..
        cd dmatrix\lib
        "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.
exe" -f Makefile.vc

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -c -DWIN32 -DLAPACK -DSPARSE_MATRIX -DUSE_IPOPT  -DUSE_SNOPT -D_CRT_E
RRNO_DEFINED -I..\..\PSOPT\src -I..\..\dmatrix\include  -I..\..\CXSparse\Include
 -I..\..\lusol\csrc -IC:\snopt7\cppsrc  -IC:\snopt7\cppexamples -IC:\Ipopt-3.9.3
\include\coin -IC:\Ipopt-3.9.3\Ipopt\src\Interfaces -IC:\Ipopt-3.9.3\Ipopt\src\C
ommon -IC:\Ipopt-3.9.3\BuildTools\headers -IC:\Ipopt-3.9.3\Ipopt\src\LinAlg -IC:
\ADOL-C-2.1.12\ADOL-C\src -IC:\ADOL-C-2.1.12\ADOL-C\src\drivers -IC:\ADOL-C-2.1.
12\ADOL-C\src\sparse -I"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\in
clude" -I"C:\Program Files (x86)\Microsoft Visual Studio 9.0\SmartDevices\SDK\Sm
artphone2003\Include" ..\..\dmatrix\src\dmatrixv.cxx /Fo..\..\dmatrix\src\dmatri
xv.obj
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

dmatrixv.cxx
..\..\dmatrix\src\dmatrixv.cxx(47) : fatal error C1083: Cannot open include file
: 'stdio.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.


In addition in your procedure in point 11 and 12 you say:

edit the file Makefile.vc and check that all references to other libraries such as adolc.lib are pointing to the correct locations where the libraries are located.

In the makefile there is no hint to adolc.lib: can you check my attached file if it is correct?


Makefile.vc

Alessandro Gabrielli

unread,
Aug 6, 2015, 7:44:08 AM8/6/15
to PSOPT users group
I am a little bit confused:
what shall I put in the folder C:\Psopt3\CXSparse\Include: SuiteSparse_config.h (from CXsparse) ? or  UFconfig (file Sluckbuild) (from UFconfig folder? I don't see any UFconfig.h or Uconfig.h. :-(
Can you better explain the procedure INSTALL POSPOPT point 3. What is the use of point 5: what's UFconfig sluckbbuild for?
cheer
alessandro
ps. sono disperato!!!!! :-)

Alessandro Gabrielli

unread,
Aug 6, 2015, 7:44:49 AM8/6/15
to PSOPT users group
As far as I understood the file Uconfig.h does not exist. I shuld yous UFconfig.h
Message has been deleted

Rabiu Garba

unread,
May 14, 2016, 12:19:59 PM5/14/16
to PSOPT users group
Good day sir,
I have tried installing the PSOPT package on microsoft visual c++ vc10 . error always pop up particularly the convertion of dlarft.f build up also returns errors..could you help with specific package verskons suitable under MSVC 10.
Reply all
Reply to author
Forward
0 new messages