Initializing help system before first use

# XPRSchgobjsense (CHGOBJSENSE)

Purpose
Changes the problem's objective function sense to minimize or maximize.
Topic area
Problem Modification
Synopsis
`int XPRS_CC XPRSchgobjsense(XPRSprob prob, int objsense);`
`CHGOBJSENSE [ min | max ]`
Arguments

prob | The current problem.
objsense | XPRS_OBJ_MINIMIZE to change into a minimization, or XPRS_OBJ_MAXIMIZE to change into a maximization problem.

Example
See also examples fixbv.c, globjpar.c, glrhspar.c, knapsack.c, loadlp.c, Polygon_initialvalue.c, Polygon_textformula.c, Polygon_tokens.c, Polygon_userfunc.c, Polygon_userfunc_map.c, Polygon_userfunc_mapdelta.c, Polygon_userfunc_multimap.c, Polygon_userfunc_multimapdelta.c, Polygon_userfunc_vecmap.c, Polygon_userfunc_vecmapdelta.c, savesol.c, tableau.c.
Related topics
XPRSlpoptimize, XPRSmipoptimize.
Parent Topic Console and Library Functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.