<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "en"><head><meta charset = "UTF-8"/><meta name = "copyright" content = "(C) Copyright 2020"/><meta name = "DC.rights.owner" content = "(C) Copyright 2020"/><meta name = "DC.type" content = "reference"/><meta name = "abstract" content = "Defines the objective function of the optimization."/><meta name = "description" content = "Defines the objective function of the optimization."/><meta name = "DC.relation" scheme = "URI" content = "../TsoUserMap/tso-m-usr-terms-objfunc-sb.htm#tso-m-usr-terms-objfunc-sb"/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-r-cmd-objFunc"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>OBJ_FUNC</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-r-cmd-objFunc">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>OBJ_FUNC</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3"><table class = "DocHeaderIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "header"><p class = "abstract">
<span class = "shortdesc">Defines the objective function of the optimization.</span>

</p>
<p>This page discusses: </p><ul><li><a href = "#tso-r-cmd-objFunc__tso-r-cmd-objFunc-rmk" id = "toc_rg" title = "">Remarks</a></li><li><a href = "#tso-r-cmd-objFunc__tso-r-cmd-objFunc-expl" id = "toc_rg" title = "">Examples</a></li></ul>
</p></td></tr></table></td><td class = "DocHeader2"><table class = "DocTopicsSeeAlso" id = "table13"><tr><td class = "TopicsTitle">See Also</td></tr></table><table class = "DocTopicsInOtherGuides" id = "table14"><tr><td height = "8px"/></tr><tr><td class = "TopicsTitleNormal">In Other Guides</td></tr><tr><td><a title = "The objective function defines the values to be maximized or minimized during optimization. This function might depend on analysis results, geometric values or combinations of those." href = "../TsoUserMap/tso-m-usr-terms-objfunc-sb.htm#tso-m-usr-terms-objfunc-sb">Objective Function</a></td></tr></table></td></tr></table>




<div class = "body refbody">
<table class = "table" id = "tso-r-cmd-objFunc__aa1398297"><caption/><colgroup><col/><col/><col/></colgroup><tbody class = "tbody">
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">ID_NAME</span> </p></td>
<td class = "entry"><p>= &lt;<code class = "ph codeph">id_name_of_obj_func</code>&gt;</p></td>
<td class = "entry"><p>Name of the objective function.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">DRESP</span> </p></td>
<td class = "entry" colspan = "2"><p>= &lt;<code class = "ph codeph">name_of_DRESP</code>&gt;, &lt;<code class = "ph codeph">weight_fact</code>&gt;, &lt;<code class = "ph codeph">ref_val</code>&gt;</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>&lt;<code class = "ph codeph">name_of_DRESP</code>&gt;</p></td>
<td class = "entry"><p>Name of the design response.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>&lt;<code class = "ph codeph">weight_fact</code>&gt;</p><p><span class = "ph uicontrol">= 1.0</span></p></td>
<td class = "entry"><p>Weight of the design response.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>&lt;<code class = "ph codeph">ref_val</code>&gt;</p><p><span class = "ph uicontrol">= 0.0</span></p></td>
<td class = "entry"><p>Reference value.</p></td>
</tr>
<tr class = "row">
<td class = "entry"><p><span class = "ph uicontrol">TARGET</span> </p></td>
<td class = "entry"><p><span class = "ph uicontrol">= </span><span class = "ph uicontrol">MIN</span></p></td>
<td class = "entry"><p>Target is to minimize the list of design responses (<code class = "ph codeph">DRESP</code>s).</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= MAX</p></td>
<td class = "entry"><p>Target is to maximize the list of design responses (<code class = "ph codeph">DRESP</code>s).</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= MINMAX</p></td>
<td class = "entry"><p>Target is to minimize the maximum of the list of design responses.</p></td>
</tr>
<tr class = "row">
<td class = "entry"/>
<td class = "entry"><p>= MAXMIN</p></td>
<td class = "entry"><p>Target is to maximize the minimum  of the list of design responses.</p><p>(Only for sizing, topology and controller-based shape optimization.)</p></td>
</tr>
</tbody></table>

<div class = "section" id = "tso-r-cmd-objFunc__tso-r-cmd-objFunc-rmk"><h2 class = "title sectiontitle">Remarks</h2>

<ol class = "ol">
<li class = "li">The item <code class = "ph codeph">DRESP</code> can be repeated several times.</li>
<li class = "li">If more than one <code class = "ph codeph">DRESP</code> entry is specified in the objective function the weight factor defines the weight of the particular entry of the objective function.</li>
<li class = "li">The reference value is only used for the <code class = "ph codeph">MINMAX</code> / <code class = "ph codeph">MAXMIN</code> formulation.</li>
</ol>
</div>

<div class = "section" id = "tso-r-cmd-objFunc__tso-r-cmd-objFunc-expl"><p><map name = "FPMap1"><area href = "#hj-top" title = "Back to Top" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title sectiontitle">Examples</h2>

<p>For BEAD: </p>
<p>Minimize the design response <code class = "ph codeph">dresp_compliance</code>:</p>
<pre class = "codeblock">
<code class = "ph codeph">OBJ_FUNC
 ID_NAME = objective
 DRESP   = <var class = "keyword varname varname"> dresp_compliance</var>
 TARGET  = MIN
END_
</code>
</pre>
<p>For SHAPE: 
</p><p>Minimize the design response <code class = "ph codeph">maximum_stress</code>:
</p><pre class = "codeblock">
<code class = "ph codeph">OBJ_FUNC
 ID_NAME = objective
 DRESP = maximum_stress
&gt;</code><code class = "ph codeph"> TARGET = MIN
</code><code class = "ph codeph">END_
</code></pre>
<pre class = "codeblock">
</pre>
<p>For sensitivity-based topology optimization:
</p><p>Minimize the objective function consistent of the volume (weight factor 1.0) 
plus the displacement design response with the factor 1.5. 
</p><pre class = "codeblock">
<code class = "ph codeph">
OBJ_FUNC
 ID_NAME = objective
 DRESP   = <var class = "keyword varname varname"> volume</var>
 DRESP   = <var class = "keyword varname varname"> disp_x_nd_113</var>,1.5
 TARGET  = MIN
END_
</code></pre>
<p>Minimize the maximum difference of the <code class = "ph codeph">DRESP</code> entry to the specified reference value for the entered <code class = "ph codeph">DRESP</code>. 
</p><pre class = "codeblock">
<code class = "ph codeph">
OBJ_FUNC
 ID_NAME = objective
 DRESP = freq_1,1.0, 100.0
 DRESP = freq_2,1.0, 120.0
 DRESP =&gt; freq_3,1.0, 130.0
 TARGET = MINMAX
END_
</code></pre>
<p>Maximize the minimum difference of the <code class = "ph codeph">DRESP</code> entry to the specified reference value for the entered <code class = "ph codeph">DRESP</code>. 
</p><pre class = "codeblock">
<code class = "ph codeph">
OBJ_FUNC
 ID_NAME = objective
 DRESP = rf_1,1.0, 10.0
 DRESP = rf_2,1.0, 12.0
 DRESP = rf_3,1.0, 13.0
 TARGET = MAXMIN
END_
</code></pre>
</div>

</div>

<div class = "related-links"/>
</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
