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

Files

file  tutorial.c
 a tutorial providing an introduction to the CONOPT API
 
file  tutorial2.c
 This model is a revision of Tutorial in which we have added a set of 2nd derivative routines, Tut_2DLagrStr and Tut_2DLagrVal.
 
file  tutorialk.c
 This model is a revision of Tutorial in which we have made the capital stock, K, a variable in the model fixed at the value 4.
 
file  largebnd.c
 This is the standard Tutorial model with a little twist: We assign some of the upper bounds a value above the maximum value of Rtmaxv. Earlier this would be a fatal error. Now the bounds are projected on the legal interval, a message is issued, and the model solved.
 
file  largeres1.c
 Example with a Large Residual in the initial point.
 
file  largeres2.c
 Example with a Large Residual in the initial point.
 
file  leastsq.c
 We solve the following nonlinear least squares model.
 
file  leastsq10.c
 This model is similar to leastsq5, but this time we define 2nd order directional information in the form of both an 2DDirIni routine where the bulk of the work is done and a 2DDir routine that just copies the information.
 
file  leastsq2.c
 This model is similar to leastsq. The key difference is that we supply a callback routine that can compute 2nd derivatives of the model. However, we only include part of the 2nd derivatives corresponding to the direct objective terms, res(i)**2. The terms from b(i,j)*x(j)**2 are ignored in the 2nd derivatives. CONOPT will not notice the incorrect derivatives but it may converge more slowly.
 
file  leastsq4.c
 This model is similar to leastsq2. The key difference is that the 2nd derivatives this time are complete as opposed to only including the res(i)**2 term.
 
file  leastsq5.c
 This model is similar to leastsq, but this time we define 2nd order information in the form of a 2DDir routine.
 
file  pinadd.c
 This is a CONOPT implementation of the Pindyck model from the GAMS model library. The implementation is similar to the one in pindyck, but this time we first solve the model for 16 periods and then we gradually increase the number of periods one at a time up to 20.
 
file  pinadd2.c
 This is a CONOPT implementation of the Pindyck model from the GAMS model library. The implementation is similar to the one in pindyck, but this time we first solve the model for 16 periods and then we gradually increase the number of periods one at a time up to 20.
 
file  pinadd2ddir.c
 This is a CONOPT implementation of the Pindyck model from the GAMS model library.
 
file  pinadd2err.c
 This is a CONOPT implementation of the Pindyck model from the GAMS model library. The implementation is similar to the one in pindyck, but this time we first solve the model for 16 periods and then we gradually increase the number of periods one at a time up to 20.
 
file  pindyck.c
 This is a CONOPT implementation of the Pindyck model from the GAMS model library. The GAMS model follows as documentation:
 
file  pinopt.c
 pinopt is a version of pindyck in which we define options with an options routine.
 
file  pinsquare.c
 Differences between pinsquare.s and pindyck.c is, that the price P is fixed at the inital value and the resulting model becomes a square system that is tested with COIDEF_Square.
 
file  qp1.c
 The current model is a simple QP model with a sparse Q matrix, bounded variables, and one constraint.
 
file  qp2.c
 Similar to qp1 but uses directional 2nd derivatives.
 
file  qp3.c
 Similar to qp1 but uses 2nd derivatives as a matrix.
 
file  qp4.c
 A combination of qp2 and qp3.
 
file  qp5.c
 Similar to qp1 but uses 2nd derivatives computed using perturbations.
 
file  square.c
 This is a square model where we pretend that the second constraint is completely nonlinear.
 
file  square2.c
 A square model where we pretend that the second constraint is completely nonlinear.
 
file  square3.c
 A square model where we pretend that the second and third constraints are completely nonlinear.
 
file  tutorial2r.c
 This is a revised version of Tutorial2 in which the production function is split into two equations using an intermediate variable.
 
file  tutoriali.c
 This model is a revision of Tutorial in which we have added a an initialization callback for the First derivative, Tut_FDEvalIni.
 

Detailed Description

Examples written in C that use a single thread.