Giter VIP home page Giter VIP logo

Comments (6)

svigerske avatar svigerske commented on June 18, 2024

That would then overwrite the SHOT that comes with GAMS.
Replacing SHOT by something else in the lines starting at https://github.com/coin-or/SHOT/blob/master/misc/gamsinst.sh#L53 should allow to have two versions of SHOT simultaneously.

I also started a new version of the scripts here:

Maybe they are easier to use or reuse.
They don't touch other libs in GAMS as in https://github.com/coin-or/SHOT/blob/master/misc/gamsinst.sh#L117, but that doesn't seem to be a clean solution anyway.

With GAMS 31, though, there might be a way to make a solver known to GAMS without editing files in the GAMS system dir.

from shot.

svigerske avatar svigerske commented on June 18, 2024

What you want me to do here? Rename SHOT in misc/gamsinst.sh, upgrade to new scripts, or wait for GAMS 31 and provide new instructions on how to tell GAMS about SHOT?

from shot.

andreaslundell avatar andreaslundell commented on June 18, 2024

I am not really sure myself... Will it work with the new scripts and GAMS 30 or older? What about all the license checks that you do now, are those backwards compatible as well? Or should we just require GAMS 31+?

from shot.

svigerske avatar svigerske commented on June 18, 2024

The new scripts work with GAMS 30 and older, too.

The license checks require GAMS >= 30, because there was some big change including the pal API in GAMS 30.

The easiest would be to remove all scripts and explain which file in GAMS to edit in which way. And when GAMS 31 is out, add an explanation for the new alternative.

I doubt that there will be many that want to install SHOT in GAMS when GAMS already includes a more-or-less recent SHOT version.

from shot.

andreaslundell avatar andreaslundell commented on June 18, 2024

Yes, I agree. The only person using those scripts would probably be me :)

from shot.

svigerske avatar svigerske commented on June 18, 2024

So https://github.com/coin-or/SHOT/pull/new/gamsinst is removing the scripts.

Can you merge this, if you agree, and add the information from

SHOT/INSTALL

Lines 79 to 89 in 0955259

Use within GAMS:
Build the SHOT library as in discussed in main installation, but make sure to
pass the GAMS system directory to the cmake call via -DGAMS_DIR=<PATH>.
Add the following entry to gmscmpun.txt (gmscmpnx.txt on Windows) in the GAMS system directory:
SHOT 1101 5 0001020304 1 0 2 MINLP MIQCP
gmsgenus.run
gmsgenux.out
/path/to/libSHOTSolver.so sht 1 1

to https://shotsolver.dev/shot/about-shot/compiling ?

from shot.

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.