<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<p>Hi Tim,<br>
This should be what you are looking for:<br>
</p>
<div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;">
<div><span style="color: rgb(156, 220, 254); background-color: rgb(0, 0, 0);">model</span><span style="color: rgb(212, 212, 212); background-color: rgb(0, 0, 0);">.setHeuristics(</span><span style="color: rgb(212, 212, 212); background-color: rgb(0, 0, 0);">SCIP_PARAMSETTING.</span><span style="color: rgb(156, 220, 254); background-color: rgb(0, 0, 0);">AGGRESSIVE</span><span style="color: rgb(212, 212, 212); background-color: rgb(0, 0, 0);">)</span></div>
</div>
<br>
This exists for the other Metaparameters Presolve and Separating as well, with the options DEFAULT, OFF, FAST, AGGRESSIVE.<br>
Feel free to visit the Github page for PySCIPOpt  (<a href="https://github.com/scipopt/PySCIPOpt" class="OWAAutoLink" id="LPlnk587826" previewremoved="true">https://github.com/scipopt/PySCIPOpt</a>), where you can ask specifically about PySCIPOpt.<br>
<br>
Best Regards,
<p></p>
<p>Christoph<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> Scip <scip-bounces@zib.de> im Auftrag von Varelmann, Tim <varelmann@aices.rwth-aachen.de><br>
<b>Gesendet:</b> Donnerstag, 18. Februar 2021 10:31<br>
<b>An:</b> scip@zib.de<br>
<b>Betreff:</b> Re: [SCIP] Selecting aggressive heuristic emphasis from pyscipopt</font>
<div> </div>
</div>
<div>
<div style="">
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US">Dear SCIP-Team,</span></p>
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US">I have an optimization problem that has sharp dual bound virtually immediately but takes a while to find
 good primal solutions, so I am looking for a way to set the heuristic emphasis to aggressive from pyscipopt, similar to setting a limit with a command like:</span></p>
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US"> </span></p>
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US">model.setRealParam('limits/gap', 0.01)</span></p>
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US"> </span></p>
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US">Is that possible in pyscipopt? If not, is there an alternative way?</span></p>
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US">Thanks,</span></p>
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US">Tim</span></p>
<p style="margin: 0cm; font-size: 11pt; font-family: "Calibri", sans-serif;"><span style="font-size:10.0pt; font-family:"Arial",sans-serif" lang="EN-US"> </span></p>
</div>
</div>
</div>
</div>
</body>
</html>