...
Wiki Markup |
---|
Run the code. The final line of output should of course be {{\[0.0, 1.0, 1.0, 0.0\]}}, up to some precision. Upload the output of the program as your assignment [here|https://stellar-mit-edu.ezproxyberklee.flo.org/S/course/15/ia13/15.S60/homework/assignment4/] If you get the error |
Cannot find Exception in thread "main" java.lang.UnsatisfiedLinkError: ilog.cplex...Cplex.CPXopenCPLEX([I)J
then your PATH was not set properly. The easiest way to deal with this is to add a virtual machine argument to the Run Configuration. Starting from the menu bar at the top, select Run → Run Configurations... and then on the left, make sure Java Application → KnapsackSolver is selected. In the center panel, pick the ( x )=Arguments tab. In the second box, titled VM Arguments, add the line:this is a VM argument
-Djava.library.path=/opt/ibm/ILOG/CPLEX_Studio124/cplex/bin/x86-64_sles10_4.1
Finally, hit Run on the bottom.