20 int ESTA[],
int COLSTA[],
int ROWNO[],
double VALUE[],
21 int NLFLAG[],
int NUMVAR,
int NUMCON,
int NUMNZ,
void* USRMEM )
86 int IGNERR,
int* ERRCNT,
int NUMVAR,
int NUMJAC,
int THREAD,
void* USRMEM )
96 if ( MODE == 1 || MODE == 3 )
101 if ( MODE == 2 || MODE == 3 ) {
138#if defined(CONOPT_LICENSE_INT_1) && defined(CONOPT_LICENSE_INT_2) && defined(CONOPT_LICENSE_INT_3) && defined(CONOPT_LICENSE_TEXT)
143 printf(
"Skipping COI_Solve due to setup errors. COI_Error = %d\n",
COI_Error);
147 printf(
"After solving. COI_Error =%d\n",
COI_Error);
151 c_log(
"Successful Solve",
OK );
int COIDEF_ReadMatrix(coiHandle_t cntvect, COI_READMATRIX_t coi_readmatrix)
define callback routine for providing the matrix data to CONOPT.
int COIDEF_Message(coiHandle_t cntvect, COI_MESSAGE_t coi_message)
define callback routine for handling messages returned during the solution process.
int COIDEF_FDEval(coiHandle_t cntvect, COI_FDEVAL_t coi_fdeval)
define callback routine for performing function and derivative evaluations.
int COIDEF_ErrMsg(coiHandle_t cntvect, COI_ERRMSG_t coi_errmsg)
define callback routine for returning error messages for row, column or Jacobian elements.
int COIDEF_Solution(coiHandle_t cntvect, COI_SOLUTION_t coi_solution)
define callback routine for returning the final solution values.
int COIDEF_Status(coiHandle_t cntvect, COI_STATUS_t coi_status)
define callback routine for returning the completion status.
int COIDEF_Optfile(coiHandle_t cntvect, const char *optfile)
define callback routine for defining an options file.
int COIDEF_StdOut(coiHandle_t cntvect, int tostdout)
allow output to StdOut.
int COIDEF_DebugFV(coiHandle_t cntvect, int debugfv)
turn Debugging of FDEval on and off.
int COIDEF_License(coiHandle_t cntvect, int licint1, int licint2, int licint3, const char *licstring)
define the License Information.
int COIDEF_OptDir(coiHandle_t cntvect, int optdir)
defines the Optimization Direction.
int COIDEF_NumVar(coiHandle_t cntvect, int numvar)
defines the number of variables in the model.
int COIDEF_ObjVar(coiHandle_t cntvect, int objvar)
defines the Objective Variable.
int COIDEF_NumNlNz(coiHandle_t cntvect, int numnlnz)
defines the Number of Nonlinear Nonzeros.
int COIDEF_NumNz(coiHandle_t cntvect, int numnz)
defines the number of nonzero elements in the Jacobian.
int COIDEF_NumCon(coiHandle_t cntvect, int numcon)
defines the number of constraints in the model.
int COI_Solve(coiHandle_t cntvect)
method for starting the solving process of CONOPT.
int main(int argc, char **argv)
Main program. A simple setup and call of CONOPT.
int LR_ReadMatrix(double LOWER[], double CURR[], double UPPER[], int VSTA[], int TYPE[], double RHS[], int ESTA[], int COLSTA[], int ROWNO[], double VALUE[], int NLFLAG[], int NUMVAR, int NUMCON, int NUMNZ, void *USRMEM)
Define information about the model.
int LR_FDEval(const double X[], double *G, double JAC[], int ROWNO, const int JACNUM[], int MODE, int IGNERR, int *ERRCNT, int NUMVAR, int NUMJAC, int THREAD, void *USRMEM)
Compute nonlinear terms and non-constant Jacobian elements.
int Std_Status(int MODSTA, int SOLSTA, int ITER, double OBJVAL, void *USRMEM)
int Std_Message(int SMSG, int DMSG, int NMSG, char *MSGV[], void *USRMEM)
int Std_Solution(const double XVAL[], const double XMAR[], const int XBAS[], const int XSTA[], const double YVAL[], const double YMAR[], const int YBAS[], const int YSTA[], int NUMVAR, int NUMCON, void *USRMEM)
void c_log(char *msgt, int code)
int Std_ErrMsg(int ROWNO, int COLNO, int POSNO, const char *MSG, void *USRMEM)