[SCIP] How to get stored solution
André Filipe Lanca Serrano
andre.serrano at tuhh.de
Mon Apr 23 22:37:23 CEST 2018
Hi,
It worked using SCIPallocBufferArray(scip, &vals, nvars) and then free
the memory using SCIPfreeBufferArray(scip, &vals)
Thanks for the tip.
Cheers,
André
Quoting Stefan Vigerske <stefan at math.hu-berlin.de>:
> Hi,
>
> On 04/20/2018 04:53 PM, André Filipe Lanca Serrano wrote:
>> [...]
>> SCIP_Real* vals;
>>
>> SCIPgetSolVals(scip, sol, nvars, vars, vals);
>> [...]
>
> Try allocating some memory to vals before passing it to SCIPgetSolVals.
>
> And have look at tools like gdb and valgrind.
>
> Stefan
More information about the Scip
mailing list