OptimT_Siman_Objective_Value_Proc

Abstract

Callback: Takes a problem state and a solution state and returns the objective value of the solution state.

Syntax

<objective_value_proc_name> (problem_state_ptr, solution_state_ptr)
Argument Type Description
problem_state_ptr void * The same problem state that the optimization engine instance issuing the call was initialized with.
solution_state_ptr void * The current solution state whose objective value is to be calculated.

Return Type

double

The objective value of the solution_state_ptr argument.

optim_siman.h

Details

A callback of this type must take in a problem state and a solution state and return the objective value of the solution state. It can return OPTIMC_SIMAN_INFINITY if a given solution is not valid or otherwise should be considered to have an infinite objective value.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com