Code Monkey home page Code Monkey logo

Comments (2)

jfowkes avatar jfowkes commented on August 18, 2024

Many thanks for reporting! This is a bug on our side: when we create CUTEst problem subfolders in the cache folder, we append the parameters (if there are any) to the folder name. Unfortunately, as N/2 is the parameter name for SROSENBR, we try to create the folder SROSENBR_N/2500 which is not a valid folder name as it contains the special character /.

Until we fix this, I suggest the following workaround: edit SROSENBR.SIF in your $MASTSIF folder so that the parameter you want is the only one that is unstarred (this will make it the default):

*   N/2 is half the number of variables

*IE N/2                 5              $-PARAMETER n = 10     original value
*IE N/2                 25             $-PARAMETER n = 50
*IE N/2                 50             $-PARAMETER n = 100
*IE N/2                 250            $-PARAMETER n = 500
*IE N/2                 500            $-PARAMETER n = 1000
 IE N/2                 2500           $-PARAMETER n = 5000
*IE N/2                 5000           $-PARAMETER n = 10000

For example, in the above N/2=2500 is the default. You can then call pycutest.import_problem('SROSENBR') and it will compile with the default parameter you just set.

@lindonroberts: any thoughts on how we could fix this? Linux does not allow / in folder names :(

from pycutest.

lindonroberts avatar lindonroberts commented on August 18, 2024

When we have parameters, the folder name is based on the problem plus the result of the function params_to_string() in build_interface.py. Modified to drop '/', and replace digits with test.

For example, now SROSENBR with sifParams={'N/2':250} is saved in cache folder "SROSENBR_Ntwo250".

from pycutest.

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.