GithubHelp home page GithubHelp logo

scipopt / jscipopt Goto Github PK

View Code? Open in Web Editor NEW
62.0 62.0 35.0 166 KB

Java interface for the SCIP Optimization Suite

License: MIT License

Java 43.37% CMake 1.69% SWIG 5.96% C++ 48.98%
interface java minlp scip solver swig

jscipopt's People

Contributors

ambros-gleixner avatar charlene-hu avatar charlene-videoamp avatar fserra avatar fuookami avatar hassancehef avatar hoangtungdinh avatar kkofler avatar mueldgog avatar patrickguenther avatar xunzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jscipopt's Issues

No "Release" folder created

image

I want to use the Java interface, so I should compile and produce the scip.jar myself? Fllowing the instructions, a "builder" folder is created, but without the "release" dir. So the "cd Release" throws an error.
Can anyone provide me with the correct scip.jar?

questions relate to JSCIPOpt installation on windows

I have some doubts about the installation steps in install.md.
First of all, I have downloaded and installed the packages needed.
Secondly, The next step is as follows, but there is an error that "CMake Error: The source directory "C:/Program Files/SCIPOptSuite 7.0.0" does not appear to contain CMakeLists.txt" . So I execute the step 1 int the directory of JSCIPOpt-master, and an error occurred like Error 1 as follows.
`

  1. Create a shared library of the SCIP Optimization Suite by executing
    mkdir build
    cd build
    cmake ..
    make
    in the SCIP Optimization Suite directory. This should have created all necessary libraries.
    _Error 1 :_
    D:\javaSCIPinterface\JSCIPOpt-master\build>cmake ..
    -- Building for: Visual Studio 14 2015
    CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required):
    Compatibility with CMake < 2.8.12 will be removed from a future version of
    CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.15063.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found JNI: C:/JDK/lib/jawt.lib
-- Found Java: C:/JDK/bin/java.exe (found version "1.8.0_144")
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
CMake Error at CMakeLists.txt:66 (find_package):
Could not find a configuration file for package "SCIP" that is compatible
with requested version "".
The following configuration files were considered but not accepted:
C:/Program Files/SCIPOptSuite 7.0.0/lib/cmake/scip/scip-config.cmake, version: 7.0.0 (64bit)

-- Configuring incomplete, errors occurred!
See also "D:/javaSCIPinterface/JSCIPOpt-master/build/CMakeFiles/CMakeOutput.log".
The Second step is as follows , but when I skip the first step and execute this step, error shows that : "The system cannot find the specified file".
2b) Building JSCIPOpt on Windows.
Compile the interface by executing the following commands:
mkdir build
cd build
cmake .. -G "Visual Studio 14 2015 Win64" -DSCIP_DIR=/build
cmake --build . --config <"Release" or "Debug">
`
I have tried to install this interface for a long time, and I want to solve a very important nonlinear programming problem with Java and SCIP. Sincerely hope to get help.

Add SCIPsetObjsense

I added two calls: setMaximize and setMinimize which call SCIPsetObjsense and they seem to work. Can I have permission to create a pull request?

A question of using JSCIPOpt

Dear,
I am happy to find this java interface for SCIP and cannot wait to try.
I have successfully built the source code and got scip.jar and libjscipopt.so
I am using IntelliJ Idea on Mac.
What I do is:
(1) add the ship.jar to dependency
(2) add the ../lib directory to dependency
(3) Run the Linear.java under /examples
Unfortunately, I got following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jscip in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.amazon.etr.scip.Linear.main(Linear.java:11)
It seems that IDE does not find libjscipopt.so in dependency…..But actually it is there.
Did I forget something?
baohua

how to use FiberSCIP to solve integer programming model from Java?

Hi,

I am trying to solve an Integer programming model by running java scip from IntelliJ Idea (community 2019.2) on macbook pro.

My java is 11.
My scipoptsuite: 6.0.2.
My jscip cheked out from https://github.com/SCIP-Interfaces/JSCIPOpt

My integer programming model took long time to be solved by SCIP solver.

Based on this
https://scip.zib.de/workshop2014/parascip_libraries.pdf

I would like to find how to use FiberSCIP to improve the performance.

Could anyone help me with this or point out some docs that may be helpful?

thanks

David

Error when using CLP as SCIP's linear solver

Hi,

I'm using your java interface and if I use SoPlex as Scip's linear solver, it works great!

However, when I used CLP as Scip's linear solver, I get the following error when I run the examples. java -cp scip.jar:examples.jar Linear

java: symbol lookup error: /home/tung/JSCIPOpt/lib/libscipopt.so: undefined symbol: _ZN10ClpSimplexC1Eb

I installed Scip using the following script:

make LPS=clp LPSOPT=opt ZIMPL=false OPT=opt GMP=false ZLIB=false READLINE=false ZIMPL=false SHARED=true scipoptlib

I tested Scip's installation with CLP (using scip's binary). Scip realized that the installed linear solver is CLP and it can solve an example problem. So I think the problem is from the Java interface side.

Would it be possible to use CLP with this java interface?

Thanks!
Tung

installing the JSCIPopt

PLz I need help!

I have an issue at 3a) step of the Install.md file . To my mind the principals errors are:

  1. CMake Error at CMakeLists.txt:18 (include):
    include could not find load file:
    UseJava

  2. found SCIP library: SCIPOPT_LIBRARIES-NOTFOUND
    CMake Error at CMakeLists.txt:96 (add_jar):
    Unknown CMake command "add_jar".

here is the full output:

~$ cd JSCIPOpt-master
~/JSCIPOpt-master$ rm -rf build
~/JSCIPOpt-master$ mkdir build
~/JSCIPOpt-master$ cd build
~/JSCIPOpt-master/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found JNI: /usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so
-- Java version 1.7.0.85 configured successfully!
-- Found Java: /usr/bin/java (found version "1.7.0.85")
CMake Error at CMakeLists.txt:18 (include):
include could not find load file:
UseJava

-- Found SWIG: /usr/local/bin/swig (found version "3.0.12")
found SCIP library: SCIPOPT_LIBRARIES-NOTFOUND
CMake Error at CMakeLists.txt:96 (add_jar):
Unknown CMake command "add_jar".

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SCIPOPT_LIBRARIES
linked by target "jscip" in directory /home/soukaina/JSCIPOpt-master

-- Configuring incomplete, errors occurred!
:~/JSCIPOpt-master/build$ `

How to model by column vectors in jscip?

Hello,I want to know how to model by column vectors in jscip.I want to use jscip in Java to build the following model.eg
image
But I can't find the function to build matrix variables in jscip.
image
image
Like the one shown above, Java will report an error.
I hope you can give me some advice, thank you very much.

undefined symbol: gzopen

When I call readProb("filename") to read an .lp file, I got this error:

java: symbol lookup error: /path/to/JSCIPOpt/lib/../lib/libscipopt.so: undefined symbol: gzopen

I have checked reading .lp file with SCIT itself and it works well.

Could you please check this?

error of running Linear.java from Eclipse

My question is relevant to my previous one.
#21
But, it is different, I created a new post.

I have downloaded and installed SCIP and JSCIP and built them successfully.

I am trying to run the example from https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/examples/Linear.java

from Eclipse.

But, I got error:

  public class Linear
 {
      public static void main(String args[])
      {
          // load generated C-library
          System.loadLibrary("jscip"); // error here 

error:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no jscip in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at Linear.main(Linear.java:9)

I have done many search for a solution here and also on stackoverflow but none of them work.

My OS :

MacOS Mojave (10.14.6)

My java:

 openjdk version "1.8.0_222" 
 OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
 OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)

  javac -version
  javac 1.8.0_222

I downloaded SCIP from

 https://scip.zib.de/download.php?fname=scipoptsuite-6.0.2.tgz

After building JSCIP, I have only the three files in

  $ ls build/Release/
  examples.jar	libjscip.dylib	scip.jar

I have added the path as lib in Eclipse so that java can find it. But, it does not work.

What is "jscip" lib really needed ? Is this "libjscip.dylib " ?

Also, I have added the /buil folder to Eclipse by following

 https://javarevisited.blogspot.com/2013/04/what-is-javalibrarypath-how-to-set-in-Eclipse.html

But, I still got an error:

   # A fatal error has been detected by the Java Runtime Environment:

  #  SIGSEGV (0xb) at pc=0x0000000128bcd319, pid=49502, tid=0x0000000000001903

 # JRE version: OpenJDK Runtime Environment (8.0_222-b10) (build 1.8.0_222-b10)
  # Java VM: OpenJDK 64-Bit Server VM (25.222-b10 mixed mode bsd-amd64 compressed oops)
 # Problematic frame:
 # C  [libawt_lwawt.dylib+0x48319]  JNI_OnLoad+0x91

thanks

Installation of JSCIPOpt for Windows and IntelliJ

We have some trouble setting up JSCIPOpt under Windows and IntelliJ. The error message is an unsatisfied link:

Main Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Backend\JSCIPOptTest\lib\jscip.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at Main.main(Main.java:9)

Steps that we have completed successfully:

  • we created a new Java project in which we want to use JSCIPOpt
  • installation of Visual Studio 2019
  • cmake.exe .. -G "Visual Studio 16 2019" -DSCIP_DIR="C:\Program Files\SCIPOptSuite 6.0.2\build"
  • we copied jscip.dll and scip.jar into a folder "lib" in our project
  • we added the folder "lib" to our class path ("project structure" > "Library" > "+" "lib")

OS:

  • Windows 10 64bit
  • IDE: IntelliJ Community 2019.1

The message Can't find dependent libraries sounds like we are missing additional libraries. What can we try next?

Accessing model or solution status

Is there a way to programmatically get the status of the model after Scip::solve has been called? For example, if an optimal solution has been found or if the model is unbounded or infeasible?

AWT missing

CMake Error at /Applications/CMake.app/Contents/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 AWT)

build deprecation warnings

When building with current SCIP bugfix branch (v91-bugfix) on a Debian12 system, there are several warnings:

17:58:56 + cmake .. -DSCIP_DIR=/scratch/opt/jenkins/workspace/SCIPOptSuite_test_interfaces/scipoptsuite-9.1.1/build/scip
17:58:56 CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required):
17:58:56   Compatibility with CMake < 2.8.12 will be removed from a future version of
17:58:56   CMake.
17:58:56 
17:58:56   Update the VERSION argument <min> value or use a ...<max> suffix to tell
17:58:56   CMake that the project does not need compatibility with older versions.
17:58:56 
17:58:56 
17:58:56 -- The C compiler identification is GNU 12.2.0
17:58:56 -- The CXX compiler identification is GNU 12.2.0
17:58:56 -- Detecting C compiler ABI info
17:58:56 -- Detecting C compiler ABI info - done
17:58:56 -- Check for working C compiler: /usr/lib/ccache/cc - skipped
17:58:56 -- Detecting C compile features
17:58:56 -- Detecting C compile features - done
17:58:56 -- Detecting CXX compiler ABI info
17:58:57 -- Detecting CXX compiler ABI info - done
17:58:57 -- Check for working CXX compiler: /usr/lib/ccache/c++ - skipped
17:58:57 -- Detecting CXX compile features
17:58:57 -- Detecting CXX compile features - done
17:58:57 -- Found JNI: /usr/lib/jvm/default-java/include  found components: JVM 
17:58:57 -- Found Java: /usr/bin/java (found version "17.0.11") 
17:58:57 -- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) 
17:58:57 libscip is a SHARED_LIBRARY.
17:58:57 -- Configuring done
17:58:57 -- Generating done
17:58:57 -- Build files have been written to: /scratch/opt/jenkins/workspace/SCIPOptSuite_test_interfaces/scipoptsuite-9.1.1/JSCIPOpt/build
17:58:57 + make -j4
17:58:57 [  9%] Building Java objects for scipjar.jar
17:58:57 [ 18%] Building CXX object CMakeFiles/jscip.dir/src/scipjni_wrap.cxx.o
17:58:59 [ 27%] Generating CMakeFiles/scipjar.dir/java_class_filelist
17:58:59 [ 36%] Creating Java archive scip.jar
17:58:59 [ 36%] Built target scipjar
17:58:59 [ 45%] Building Java objects for examples.jar
17:58:59 In file included from /scratch/opt/jenkins/workspace/SCIPOptSuite_test_interfaces/scipoptsuite-9.1.1/scip/src/scip/scip.h:44,
17:58:59                  from /scratch/opt/jenkins/workspace/SCIPOptSuite_test_interfaces/scipoptsuite-9.1.1/JSCIPOpt/src/scipjni_wrap.cxx:753:
17:58:59 /scratch/opt/jenkins/workspace/SCIPOptSuite_test_interfaces/scipoptsuite-9.1.1/JSCIPOpt/src/scipjni_wrap.cxx: In function ‘SCIP_CONS* createConsBasicQuadratic(SCIP*, const char*, int, SCIP_VAR**, double*, int, SCIP_VAR**, SCIP_VAR**, double*, double, double)’:
17:58:59 /scratch/opt/jenkins/workspace/SCIPOptSuite_test_interfaces/scipoptsuite-9.1.1/JSCIPOpt/src/scipjni_wrap.cxx:867:52: warning: ‘SCIP_RETCODE SCIPcreateConsBasicQuadratic(SCIP*, SCIP_CONS**, const char*, int, SCIP_VAR**, double*, int, SCIP_VAR**, SCIP_VAR**, double*, double, double)’ is deprecated [-Wdeprecated-declarations]
17:58:59   867 |       SCIP_CALL_ABORT( SCIPcreateConsBasicQuadratic(scip, &cons, name, nlinvars, linvars, lincoefs, nquadvars, quadvars1, quadvars2, quadcoefs, lhs, rhs) );
17:58:59       |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17:58:59 In file included from /scratch/opt/jenkins/workspace/SCIPOptSuite_test_interfaces/scipoptsuite-9.1.1/JSCIPOpt/src/scipjni_wrap.cxx:755:
17:58:59 /scratch/opt/jenkins/workspace/SCIPOptSuite_test_interfaces/scipoptsuite-9.1.1/scip/src/scip/cons_quadratic.h:124:14: note: declared here
17:58:59   124 | SCIP_RETCODE SCIPcreateConsBasicQuadratic(
17:58:59       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

This deprecation is since SCIP 8.0.0 !

Add license

This project is missing a license.We should add one to let users know how they can use this code.

any method can find the reason why infeasible

an easy case :
if i have put constraint 1 x1 > 4
and also put constraint 2 x1 = 3
then i solve it.. of course infeasible

jscipopt has any method or log info can help us quickly find the reason which confilct by constraint1 and constraint2?
because sometimes, we may not know the silly thing we had done. may be the modeling data was very huge..

any good advice for us to do? when we find the infeasible result. thanks a lot.

还需要windows8.1的sdk

首先, 我要说明我是新手.

我按照install.md文件中的指导, 在windows10上构建.dll, .jar的时候, 出了错误.
经过搜索后, 我下载并安装windows8.1的sdk后, 再进行构建, 就没有错误了.

所以我觉得可能需要windows8.1的sdk

不够我并不确定我的想法.

Google Translation:

First of all, I want to show that I am a novice.

When I followed the instructions in the install.md file, when building .dll, .jar on windows10, something went wrong.

After searching, I downloaded and installed the windows8.1 SDK, and then built it, and there were no errors.

So I think it may need windows8.1 sdk

Not enough I am not sure what I think.

how to set init solution before solve?

for the title..i want to know how to set one or more solution first before solve?
in the scipjnijni, just found SCIPsetSolVals(long jarg1, long jarg2, int jarg3, long jarg4, long jarg5) , does it?

but any examples? thanks a lot. :)

Installing JSCIPOpt referencing debian package SCIPOptSuite-5.0.1-Linux.deb

Dear developers,

I'd like to install JSCIPOpt referencing debian package SCIPOptSuite-5.0.1-Linux.deb on a Linux Debian machine, installing SCIPOptSuite-5.0.1-Linux.deb with dpkg is ok,
but I can’t figure out how to refer to installed files (listed by command : dpkg -c SCIPOptSuite-5.0.1-Linux.deb) when compiling JSCIPOpt with Cmake.

I don’t know what path to refer in the option -DSCIP_DIR in the command
$ cmake .. -DSCIP_DIR=/build
(following tutorial https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/INSTALL.md)

Maybe I’m missing or not understand something.

After compiling with :
$ cmake .. -DSCIP_DIR=/usr/include (for example, the repository where the .h SCIP files are placed)

I tried :
$ make

And that failed at first step :

Logs in English:

Scanning dependencies of target jscip
[10%] Building C object CMakeFiles / jscip.dir / src / scipjni_wrap.c.o
make [2]: *** No rules for making the "libscip-NOTFOUND" target, needed for "Release / libjscip.so". Stop.
CMakeFiles / Makefile2: 67: the recipe for the target "CMakeFiles / jscip.dir / all" failed
make [1]: *** [CMakeFiles / jscip.dir / all] Error 2
Makefile: 83: the recipe for the "all" target has failed
make: *** [all] Error 2

Please kindly let me know if there is a Debian package for JSCIPOpt and how to refer to installed files of SCIPOptSuite-5.0.1-Linux.deb

Please let me know if you need further information.

Thank you very much beforehand,

Best regards,

fatal error

when I run scip like this in my mac pro

java -cp scip.jar:examples.jar Linear

I've found that an exception has been threw in my terminal

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000128d7a241, pid=19480, tid=0x0000000000001c03
#
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libawt_lwawt.dylib+0x46241]  JNI_OnLoad+0x91
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/muzhe/Documents/temp/JSCIPOpt/build/Release/hs_err_pid19480.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Abort trap: 6
the internal exception 
Internal exceptions (2 events):
Event: 0.030 Thread 0x00007faad780c800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x000000076ab07ca8) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u121/8372/hotspo
Event: 0.030 Thread 0x00007faad780c800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x000000076ab07f90) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u121/8372/hotspot/src/share/vm/pri

Stack: [0x00007000082d8000,0x00007000083d8000],  sp=0x00007000083d7480,  free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [liblwawt.dylib+0xe17b]  JNI_OnLoad+0x91
C  [libjava.dylib+0x1443]  Java_java_lang_ClassLoader_00024NativeLibrary_load+0xcf
j  java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V+0
j  java.lang.ClassLoader.loadLibrary1(Ljava/lang/Class;Ljava/io/File;)Z+302
j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+2
j  java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+268
j  java.lang.Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V+54
j  java.lang.System.loadLibrary(Ljava/lang/String;)V+7
j  Linear.main([Ljava/lang/String;)V+2
v  ~StubRoutines::call_stub
V  [libjvm.dylib+0x2dc898]  JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x22a
V  [libjvm.dylib+0x2dc668]  JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*)+0x28
V  [libjvm.dylib+0x31004e]  jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0xe6
V  [libjvm.dylib+0x3091e9]  jni_CallStaticVoidMethod+0x10b
C  [java+0x30fe]  JavaMain+0x91d
C  [libsystem_pthread.dylib+0x39af]  _pthread_body+0xb4
C  [libsystem_pthread.dylib+0x38fb]  _pthread_body+0x0
C  [libsystem_pthread.dylib+0x3101]  thread_start+0xd

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V+0
j  java.lang.ClassLoader.loadLibrary1(Ljava/lang/Class;Ljava/io/File;)Z+302
j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+2
j  java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+268
j  java.lang.Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V+54
j  java.lang.System.loadLibrary(Ljava/lang/String;)V+7
j  Linear.main([Ljava/lang/String;)V+2
v  ~StubRoutines::call_stub

please help me!

The import scip cannot be resolved Java(268435846)

I've followed the steps on the documentation for macOS but looks like my Java environment is unable to detect scip.

Did the manual installation with optimization suit as well. Is it supposed to generate scip.jar or jscip.jar?

error when build scip-7.0 on windows

i run
cmake ..
got
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17763.
-- The C compiler identification is MSVC 19.24.28316.0
-- The CXX compiler identification is MSVC 19.24.28316.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find GMP (missing: GMP_INCLUDE_DIRS GMP_LIBRARIES)
SoPlex with Boost CPP multiprecision libraries.
-- Performing Test Quadmath_USE_DIRECTLY
-- Performing Test Quadmath_USE_DIRECTLY - Failed
-- Could NOT find Quadmath (missing: Quadmath_LIBRARY Quadmath_INCLUDE_DIR)
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR program_options) (Required is at least version "1.58.0")
CMake Warning at soplex/CMakeLists.txt:162 (message):
Boost could not be found! ONLY the SoPlex library can be built without
Boost. The SoPlex binary will NOT be built. If you require the binary,
please make sure Boost is installed and your BOOST_ROOT environment
variable is set.

CMake Error at soplex/check/CMakeLists.txt:66 (if):
if given arguments:

"GREATER_EQUAL" "107000"

Unknown arguments specified

-- Configuring incomplete, errors occurred!
See also "E:/github/scipoptsuite-7.0.0/build/CMakeFiles/CMakeOutput.log".
See also "E:/github/scipoptsuite-7.0.0/build/CMakeFiles/CMakeError.log".

How can I run these Java examples in eclipse on Windows?

When I run the Java examples in eclipse, I get various compiler issues.
E.g., for Scip scip = new Scip(); in the following example, "Scip cannot be resolved to a type"

The newest 6.0.1 download does not seem to have an "scip.jar" file https://scip.zib.de/download.php?fname=scip-6.0.1.tgz

The earlier 3.2.1 download does have scip.jar: https://scip.zib.de/download.php?fname=scipjni-3.2.1.win.x86_64.msvc.opt.spx.zip

But it may be outdated with the code example

how to run JSCIP test exmple on macbook

Hi, I am trying to run JSCIP on MacBook.

My OS :

 MacOS Mojave  (10.14.6)

My java:

openjdk version "1.8.0_222" 
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)

I downloaded SCIP from

  https://scip.zib.de/download.php?fname=scipoptsuite-6.0.2.tgz

and build it after installing gmp.
I just run :

  make 

and then

  make test

It works well on MacBook.

Then, I installed JSCIP on macbook by following this step by step:

  https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/INSTALL.md 

When I am running

java -cp scip.jar:examples.jar <"Linear" or "Quadratic" or "Read" or "Multiknapsack"> 

I got :

  -bash: syntax error near unexpected token `newline' 

When I run

    java -cp scip.jar:examples.jar "Linear" 

I got:

  A fatal error has been detected by the Java Runtime Environment:##  SIGSEGV (0xb) at pc=0x000000012138b319, pid=88434, tid=0x0000000000001d03

How can I run this correctly ?

Thanks

Add lazy constraints at runtime

Hi everyone,
I would like to try out and experiment with SCIP using the Java API.
However, it is unclear to me whether the Java API allows to add user defined cuts and/or lazy constraints while SCIP is solving a model.

E.g.: could I solve a simple Travelling Salesmann Problem starting from an incomplete model with just "flow constraints" and add Subtour Elimination Constraints and/or Connectivity Constraints manually at runtime?

Thank you a lot!

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.