Closed KenZhenLin closed 1 year ago
Hi @KenZhenLin, many thanks for reporting. This is a bug upstream in archdefs, could you please edit /home/cutest/archdefs/compiler.pc64.lnx.gfo
and change the line:
FORTRAN='gfortran-12'
to read
FORTRAN='gfortran'
and re-run the install script (you may need to delete any temporary files that have been created). I will report this upstream and it will hopefully be fixed soon.
@KenZhenLin this has now been fixed upstream, please update your archdefs to the latest.
@KenZhenLin this has now been fixed upstream, please update your archdefs to the latest.
Thanks a lot for the quick response! I would like to remove everything and try it again. Would it be sufficient to remove the directory cutest
?
@KenZhenLin yes if you remove the top level /home/cutest
directory that should work.
@KenZhenLin yes if you remove the top level
/home/cutest
directory that should work.
Thanks! I tried it again, and that line does not have issues anymore! Now I got an error when trying the test
cd $SIFDECODE/src ; make -f $SIFDECODE/makefiles/$MYARCH test
The message is long, but in the end it shows:
echo ""
echo " Decode unconstrained SIF file"
Decode unconstrained SIF file
cd /home/cutest/sifdecode//sif/ ; sifdecoder ALLINITU
/bin/sh: sifdecoder: command not found
make[1]: *** [test_unconstrained_double] Error 127
make[1]: Leaving directory `/home/cutest/sifdecode/src/decode'
make: *** [test_double] Error 2
Great, I wouldn't worry about those tests, as long as CUTEst and SIFDecoder were successfully installed you should now be able to install PyCUTEst.
Great, I wouldn't worry about those tests, as long as CUTEst and SIFDecoder were successfully installed you should now be able to install PyCUTEst.
Thanks! The process went well, I just need to do a few tests to make sure everything works correctly. I will give you an update when it's done!
May I ask some quick questions?
Can I assume all the problems from pycutest.import_problem
are the original CUTEst problems without any modifications (such as removing constant terms)?
Also I don't see a description on if a problem is minimization or maximization, are they all assumed to be minimization?
Finally, I see there is a closed question on getting the optimal objective value
and the corresponding x
. Looks like some files, for example ARGLINA.SIF
, do not have the optimal value. Is there now a better way to get the optimal objective value
, and the x
that attains the optimal, if possible?
Thank you!
Hi @KenZhenLin, in response to your questions:
drop_fixed_variables=False
Thanks!
Hi @KenZhenLin, in response to your questions:
- The problems are imported exactly as per the original CUTEst problems, except fixed variables (i.e. where the upper and lower bounds are equal) are dropped. This can be changed by setting the optional argument
drop_fixed_variables=False
- Yes, all problems are minimization
- Sorry, we still don't have a way to get the optimal objective value/solution x in PyCUTEst
Thanks!
I see! Thank you for the clear answer!
Closing as this bug has been fixed upstream in ARCHDefs.
Hi,
I was following the documentation "Installing CUTEst on Linux", and I ran the command
And I got the error below:
Could you please give some advice? Thanks a lot!
By the way,
gfortran -v
gives megcc version 6.2.0 (GCC)
.