@@ -420,7 +420,7 @@ ConstraintIndex COPTModel::add_second_order_cone_constraint(const Vector<Variabl
420420 const char *name, bool rotated)
421421{
422422 IndexT index = m_cone_constraint_index.add_index ();
423- ConstraintIndex constraint_index (ConstraintType::Cone , index);
423+ ConstraintIndex constraint_index (ConstraintType::SecondOrderCone , index);
424424
425425 int N = variables.size ();
426426 std::vector<int > ind_v (N);
@@ -452,7 +452,7 @@ ConstraintIndex COPTModel::add_exp_cone_constraint(const Vector<VariableIndex> &
452452 const char *name, bool dual)
453453{
454454 IndexT index = m_exp_cone_constraint_index.add_index ();
455- ConstraintIndex constraint_index (ConstraintType::COPT_ExpCone , index);
455+ ConstraintIndex constraint_index (ConstraintType::ExponentialCone , index);
456456
457457 int N = variables.size ();
458458 if (N != 3 )
@@ -729,11 +729,11 @@ void COPTModel::delete_constraint(const ConstraintIndex &constraint)
729729 m_sos_constraint_index.delete_index (constraint.index );
730730 error = copt::COPT_DelSOSs (m_model.get (), 1 , &constraint_row);
731731 break ;
732- case ConstraintType::Cone :
732+ case ConstraintType::SecondOrderCone :
733733 m_cone_constraint_index.delete_index (constraint.index );
734734 error = copt::COPT_DelCones (m_model.get (), 1 , &constraint_row);
735735 break ;
736- case ConstraintType::COPT_ExpCone :
736+ case ConstraintType::ExponentialCone :
737737 m_exp_cone_constraint_index.delete_index (constraint.index );
738738 error = copt::COPT_DelExpCones (m_model.get (), 1 , &constraint_row);
739739 break ;
@@ -754,9 +754,9 @@ bool COPTModel::is_constraint_active(const ConstraintIndex &constraint)
754754 return m_quadratic_constraint_index.has_index (constraint.index );
755755 case ConstraintType::SOS:
756756 return m_sos_constraint_index.has_index (constraint.index );
757- case ConstraintType::Cone :
757+ case ConstraintType::SecondOrderCone :
758758 return m_cone_constraint_index.has_index (constraint.index );
759- case ConstraintType::COPT_ExpCone :
759+ case ConstraintType::ExponentialCone :
760760 return m_exp_cone_constraint_index.has_index (constraint.index );
761761 default :
762762 throw std::runtime_error (" Unknown constraint type" );
@@ -1300,9 +1300,9 @@ int COPTModel::_constraint_index(const ConstraintIndex &constraint)
13001300 return m_quadratic_constraint_index.get_index (constraint.index );
13011301 case ConstraintType::SOS:
13021302 return m_sos_constraint_index.get_index (constraint.index );
1303- case ConstraintType::Cone :
1303+ case ConstraintType::SecondOrderCone :
13041304 return m_cone_constraint_index.get_index (constraint.index );
1305- case ConstraintType::COPT_ExpCone :
1305+ case ConstraintType::ExponentialCone :
13061306 return m_exp_cone_constraint_index.get_index (constraint.index );
13071307 case ConstraintType::COPT_NL:
13081308 return m_nl_constraint_index.get_index (constraint.index );
0 commit comments