Initializing help system before first use

# SetObjective Method

Overload List

| Name | Description
--- | --- | ---
| SetObjective(Expression) | Set the objective function to a new expression.
| SetObjective(Expression, ObjSense) | Set the objective function to a new expression.
| SetObjective(Int32, Double) | Set objective to a linear function. Any previously set objective will be cleared.
| SetObjective(Int32, Double, ObjSense) | Set objective to a linear function. Any previously set objective will be cleared.
| SetObjective(Int32, Expression, Int32, Double, Double, Double) | Set an objective function and its controls. In case of error: - if the function created new objectives then all newly created objectives will be removed, - if an existing objective was modified then that objective function will be cleared and all controls will be unchanged.

Top
See Also

#### Reference

XpressProblem Class
Optimizer.Objects Namespace
Covered Topics

- SetObjective(Expression) Method
- SetObjective(Expression, ObjSense) Method
- SetObjective(Int32, Expression, Int32, Double, Double, Double) Method

Parent Topic XpressProblem Methods

© 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.