CONOPT
Loading...
Searching...
No Matches
Java - Single Thread

Topics

 tutorial.java
 a tutorial providing an introduction to the CONOPT API
 
 tutorial2.java
 This model is a revision of Tutorial in which we have added a set of 2nd derivative routines, Tut_2DLagrStr and Tut_2DLagrVal.
 
 tutoriali.java
 This model is a revision of Tutorial in which we have added a an initialization callback for the First derivative, Tut_FDEvalIni.
 
 qp1.java
 The current model is a simple QP model with a sparse Q matrix, bounded variables, and one constraint.
 
 qp2.java
 Similar to qp1 but uses directional 2nd derivatives.
 
 qp3.java
 Similar to qp1 but uses 2nd derivatives as a matrix.
 
 qp4.java
 A combination of qp2 and qp3.
 

Detailed Description

Examples written in Java that use a single thread.

To build an run a single example it is necessary to also build the common files std.java and MsgHandler.java in examples/common. For the tutorial example, this is built by calling

javac -d obj -cp ../../lib/conopt.jar ../common/std.java ../common/MsgHandler.java tutorial.java
Definition std.py:1

The compiled class files are in the obj directory.

The tutorial example can then be run by calling

java -cp ../../lib/conopt.jar:obj -Djava.library.path=../../lib tutorial

On Windows, replace javac and java with javac.exe and java.exe.