@@ -466,6 +466,15 @@ private static extern int Highs_addCols(
466466 [ DllImport ( highslibname ) ]
467467 private static extern int Highs_getInt64InfoValue ( IntPtr highs , string info , out long value ) ;
468468
469+ [ DllImport ( highslibname ) ]
470+ private static extern int Highs_changeObjectiveOffset ( IntPtr highs , double offset ) ;
471+
472+ [ DllImport ( highslibname ) ]
473+ private static extern int Highs_addLinearObjective ( IntPtr highs , double weight , double offset , double [ ] coefficients , double abs_tolerance , double rel_tolerance , int priority ) ;
474+
475+ [ DllImport ( highslibname ) ]
476+ private static extern int Highs_clearLinearObjectives ( IntPtr highs ) ;
477+
469478 [ DllImport ( highslibname ) ]
470479 private static extern int Highs_setSolution ( IntPtr highs , double [ ] col_value , double [ ] row_value , double [ ] col_dual , double [ ] row_dual ) ;
471480
@@ -1023,6 +1032,21 @@ public SolutionInfo getInfo()
10231032 return info ;
10241033 }
10251034
1035+ public HighsStatus changeObjectiveOffset ( double offset )
1036+ {
1037+ return ( HighsStatus ) HighsLpSolver . Highs_changeObjectiveOffset ( this . highs , offset ) ;
1038+ }
1039+
1040+ public HighsStatus addLinearObjective ( double weight , double offset , double [ ] coefficients , double abs_tolerance , double rel_tolerance , int priority )
1041+ {
1042+ return ( HighsStatus ) HighsLpSolver . Highs_addLinearObjective ( this . highs , weight , offset , coefficients , abs_tolerance , rel_tolerance , priority ) ;
1043+ }
1044+
1045+ public HighsStatus clearLinearObjectives ( )
1046+ {
1047+ return ( HighsStatus ) HighsLpSolver . Highs_clearLinearObjectives ( this . highs ) ;
1048+ }
1049+
10261050 public HighsStatus setSolution ( HighsSolution solution )
10271051 {
10281052 return ( HighsStatus ) HighsLpSolver . Highs_setSolution ( this . highs , solution . colvalue , solution . rowvalue , solution . coldual , solution . rowdual ) ;
0 commit comments