@@ -25,7 +25,7 @@ extern "C" {
2525
2626#define COPT_VERSION_MAJOR 7
2727#define COPT_VERSION_MINOR 2
28- #define COPT_VERSION_TECHNICAL 5
28+ #define COPT_VERSION_TECHNICAL 8
2929
3030
3131/*
@@ -147,6 +147,7 @@ extern "C" {
147147#define COPT_DBLPARAM_TUNETIMELIMIT "TuneTimeLimit"
148148#define COPT_DBLPARAM_TUNETARGETTIME "TuneTargetTime"
149149#define COPT_DBLPARAM_TUNETARGETRELGAP "TuneTargetRelGap"
150+ #define COPT_DBLPARAM_MULTIOBJTIMELIMIT "MultiObjTimeLimit"
150151
151152/* Integer parameters */
152153#define COPT_INTPARAM_LOGGING "Logging"
@@ -197,6 +198,7 @@ extern "C" {
197198#define COPT_INTPARAM_TUNEMEASURE "TuneMeasure"
198199#define COPT_INTPARAM_TUNEPERMUTES "TunePermutes"
199200#define COPT_INTPARAM_TUNEOUTPUTLEVEL "TuneOutputLevel"
201+ #define COPT_INTPARAM_MULTIOBJPARAMMODE "MultiObjParamMode"
200202#define COPT_INTPARAM_LAZYCONSTRAINTS "LazyConstraints"
201203
202204/* Double attributes */
@@ -209,6 +211,7 @@ extern "C" {
209211#define COPT_DBLATTR_FEASRELAXOBJ "FeasRelaxObj"
210212
211213/* Integer attributes */
214+ #define COPT_INTATTR_MULTIOBJS "MultiObjs"
212215#define COPT_INTATTR_COLS "Cols"
213216#define COPT_INTATTR_PSDCOLS "PSDCols"
214217#define COPT_INTATTR_ROWS "Rows"
@@ -297,6 +300,13 @@ extern "C" {
297300#define COPT_NL_ATAN2 -47
298301#define COPT_NL_SUM -50
299302#define COPT_NL_GET -60
303+ #define COPT_NL_POSTFIX -99
304+
305+ /* Multi-objective parameters */
306+ #define COPT_MULTIOBJ_PRIORITY "MultiObjPriority"
307+ #define COPT_MULTIOBJ_WEIGHT "MultiObjWeight"
308+ #define COPT_MULTIOBJ_ABSTOL "MultiObjAbsTol"
309+ #define COPT_MULTIOBJ_RELTOL "MultiObjRelTol"
300310
301311/* COPT client config keywords */
302312#define COPT_CLIENT_CAFILE "CaFile"
@@ -799,6 +809,28 @@ int COPT_CALL COPT_SetIndicatorNames(copt_prob *prob, int num, const int *list,
799809int COPT_CALL COPT_ReplaceColObj (copt_prob * prob , int num , const int * list , const double * obj );
800810int COPT_CALL COPT_ReplacePSDObj (copt_prob * prob , int num , const int * list , const int * idx );
801811
812+ int COPT_CALL COPT_MultiObjSetColObj (copt_prob * prob , int iObj , int num , const int * list , const double * colObj );
813+ int COPT_CALL COPT_MultiObjGetColObj (copt_prob * prob , int iObj , int num , const int * list , double * colObj );
814+ int COPT_CALL COPT_MultiObjDelColObj (copt_prob * prob , int iObj );
815+
816+ int COPT_CALL COPT_MultiObjSetObjSense (copt_prob * prob , int iObj , int iObjSense );
817+ int COPT_CALL COPT_MultiObjSetObjConst (copt_prob * prob , int iObj , double dObjConst );
818+
819+ int COPT_CALL COPT_MultiObjSetObjParam (copt_prob * prob , int iObj , const char * paramName , double dblParam );
820+ int COPT_CALL COPT_MultiObjGetObjParam (copt_prob * prob , int iObj , const char * paramName , double * p_dblParam );
821+ int COPT_CALL COPT_MultiObjResetObjParam (copt_prob * prob , int iObj );
822+
823+ int COPT_CALL COPT_MultiObjSetIntParam (copt_prob * prob , int iObj , const char * paramName , int intParam );
824+ int COPT_CALL COPT_MultiObjGetIntParam (copt_prob * prob , int iObj , const char * paramName , int * p_intParam );
825+ int COPT_CALL COPT_MultiObjSetDblParam (copt_prob * prob , int iObj , const char * paramName , double dblParam );
826+ int COPT_CALL COPT_MultiObjGetDblParam (copt_prob * prob , int iObj , const char * paramName , double * p_dblParam );
827+ int COPT_CALL COPT_MultiObjResetParam (copt_prob * prob , int iObj );
828+
829+ int COPT_CALL COPT_MultiObjGetIntAttr (copt_prob * prob , int iObj , const char * attrName , int * p_intAttr );
830+ int COPT_CALL COPT_MultiObjGetDblAttr (copt_prob * prob , int iObj , const char * attrName , double * p_dblAttr );
831+
832+ int COPT_CALL COPT_MultiObjGetPoolObjVal (copt_prob * prob , int iObj , int iSol , double * p_objVal );
833+
802834int COPT_CALL COPT_ReadMps (copt_prob * prob , const char * mpsfilename );
803835int COPT_CALL COPT_ReadLp (copt_prob * prob , const char * lpfilename );
804836int COPT_CALL COPT_ReadSDPA (copt_prob * prob , const char * sdpafilename );
@@ -830,6 +862,7 @@ int COPT_CALL COPT_WriteParamStr(copt_prob *prob, char *str, int nStrSize, int *
830862int COPT_CALL COPT_WriteBlob (copt_prob * prob , int tryCompress , void * * p_blob , COPT_INT64 * pLen );
831863
832864int COPT_CALL COPT_AddMipStart (copt_prob * prob , int num , const int * list , const double * colVal );
865+ int COPT_CALL COPT_SetNLPrimalStart (copt_prob * prob , int num , const int * list , const double * colVal );
833866
834867int COPT_CALL COPT_SolveLp (copt_prob * prob );
835868int COPT_CALL COPT_Solve (copt_prob * prob );
0 commit comments