Home
last modified time | relevance | path

Searched refs:activevals (Results 1 – 11 of 11) sorted by relevance

/dports/math/SCIP/scip-7.0.3/src/scip/
H A Dreader_ppm.c379 SCIP_Real* activevals; in printLinearCons() local
393 SCIP_CALL( SCIPduplicateBufferArray(scip, &activevals, vals, nactivevars ) ); in printLinearCons()
397 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in printLinearCons()
400 activevals[v] = 1.0; in printLinearCons()
404 …SCIP_CALL( getActiveVariables(scip, activevars, activevals, &nactivevars, &activeconstant, transfo… in printLinearCons()
412 if( REALABS(activevals[v]) > *maxcoef) in printLinearCons()
413 *maxcoef = REALABS(activevals[v]); in printLinearCons()
420 … printRow(scip, file, readerdata, activevars, activevals, nactivevars, ncompletevars, *maxcoef); in printLinearCons()
426 … printRow(scip, file, readerdata, activevars, activevals, nactivevars, ncompletevars, *maxcoef); in printLinearCons()
431 SCIPfreeBufferArray(scip, &activevals); in printLinearCons()
H A Dreader_ccg.c300 SCIP_Real* activevals; in handleLinearCons() local
311 SCIP_CALL( SCIPduplicateBufferArray(scip, &activevals, vals, nactivevars ) ); in handleLinearCons()
314 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in handleLinearCons()
317 activevals[v] = 1.0; in handleLinearCons()
321 …SCIP_CALL( getActiveVariables(scip, activevars, activevals, &nactivevars, &activeconstant, transfo… in handleLinearCons()
324 SCIP_CALL( createEdgesFromRow(scip, activevars, activevals, nactivevars, G) ); in handleLinearCons()
328 SCIPfreeBufferArray(scip, &activevals); in handleLinearCons()
H A Dreader_pbm.c316 SCIP_Real* activevals; in printLinearCons() local
332 SCIP_CALL( SCIPduplicateBufferArray(scip, &activevals, vals, nactivevars ) ); in printLinearCons()
336 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in printLinearCons()
339 activevals[v] = 1.0; in printLinearCons()
343 …SCIP_CALL( getActiveVariables(scip, activevars, activevals, &nactivevars, &activeconstant, transfo… in printLinearCons()
350 SCIPfreeBufferArray(scip, &activevals); in printLinearCons()
H A Dreader_gms.c296 SCIP_Real* activevals = NULL; in printActiveVariables() local
328 activevals[v] = 1.0; in printActiveVariables()
334 assert( nactivevars == 0 || activevals != NULL ); in printActiveVariables()
366 if( !SCIPisZero(scip, activevals[v]) ) in printActiveVariables()
374 if( SCIPisEQ(scip, activevals[v], 1.0) ) in printActiveVariables()
377 else if( SCIPisEQ(scip, activevals[v], -1.0) ) in printActiveVariables()
419 SCIPfreeBufferArray(scip, &activevals); in printActiveVariables()
529 SCIP_Real* activevals = NULL; in printLinearCons() local
558 activevals[v] = 1.0; in printLinearCons()
572 nactivevars, activevars, activevals, rhs - activeconstant) ); in printLinearCons()
[all …]
H A Dreader_pip.c2626 SCIP_Real* activevals = NULL; in printQuadraticCons() local
2656 activevals[v] = 1.0; in printQuadraticCons()
2679 activevars, activevals, nactivevars, in printQuadraticCons()
2697 SCIPfreeBufferArray(scip, &activevals); in printQuadraticCons()
2722 SCIP_Real* activevals = NULL; in printNonlinearCons() local
2752 activevals[v] = 1.0; in printNonlinearCons()
2796 SCIPfreeBufferArray(scip, &activevals); in printNonlinearCons()
2856 SCIP_Real* activevals; in printAggregatedCons() local
2873 activevals[0] = 1.0; in printAggregatedCons()
2879 activevals[nactivevars] = -1.0; in printAggregatedCons()
[all …]
H A Dreader_lp.c2809 SCIP_Real* activevals = NULL; in printQuadraticCons() local
2837 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in printQuadraticCons()
2840 activevals[v] = 1.0; in printQuadraticCons()
2863 activevars, activevals, nactivevars, in printQuadraticCons()
2871 activevars, activevals, nactivevars, in printQuadraticCons()
2880 SCIPfreeBufferArray(scip, &activevals); in printQuadraticCons()
3254 SCIP_Real* activevals; in printAggregatedCons() local
3263 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nvars) ); in printAggregatedCons()
3271 activevals[0] = 1.0; in printAggregatedCons()
3277 activevals[nactivevars] = -1.0; in printAggregatedCons()
[all …]
H A Dreader_opb.c2704 SCIP_Real* activevals; in printNonLinearCons() local
2729 SCIP_CALL( SCIPduplicateBufferArray(scip, &activevals, vals, nactivevars ) ); in printNonLinearCons()
2733 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in printNonLinearCons()
2736 activevals[v] = 1.0; in printNonLinearCons()
2740 …SCIP_CALL( getActiveVariables(scip, activevars, activevals, &nactivevars, &activeconstant, transfo… in printNonLinearCons()
2775 SCIPfreeBufferArray(scip, &activevals); in printNonLinearCons()
2892 SCIP_Real* activevals; in printLinearCons() local
2914 SCIP_CALL( SCIPduplicateBufferArray(scip, &activevals, vals, nactivevars ) ); in printLinearCons()
2918 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in printLinearCons()
2921 activevals[v] = 1.0; in printLinearCons()
[all …]
H A Dmatrix.c224 SCIP_Real* activevals; in addConstraint() local
246 activevals = NULL; in addConstraint()
254 SCIP_CALL( SCIPduplicateBufferArray(scip, &activevals, vals, nactivevars ) ); in addConstraint()
258 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in addConstraint()
261 activevals[v] = 1.0; in addConstraint()
265 SCIP_CALL( getActiveVariables(scip, &activevars, &activevals, &nactivevars, &activeconstant) ); in addConstraint()
276 …SCIP_CALL( addRow(scip, matrix, activevars, activevals, nactivevars, lhs, rhs, maxnnonzsmem, rowad… in addConstraint()
280 SCIPfreeBufferArray(scip, &activevals); in addConstraint()
H A Dsol.c1872 SCIP_Real* activevals; in SCIPsolRetransform() local
1908 SCIP_CALL( SCIPsetAllocBufferArray(set, &activevals, ntransvars + 1) ); in SCIPsolRetransform()
1923 activevals[0] = 1.0; in SCIPsolRetransform()
1928 …SCIP_CALL( SCIPvarGetActiveRepresentatives(set, activevars, activevals, &nactivevars, ntransvars +… in SCIPsolRetransform()
1937 …assert(!SCIPsetIsInfinity(set, -solvals[v]) || !SCIPsetIsInfinity(set, activevals[i] * transsolval… in SCIPsolRetransform()
1938 …assert(!SCIPsetIsInfinity(set, solvals[v]) || !SCIPsetIsInfinity(set, -activevals[i] * transsolval… in SCIPsolRetransform()
1939 solvals[v] += activevals[i] * transsolvals[SCIPvarGetProbindex(activevars[i])]; in SCIPsolRetransform()
1976 SCIPsetFreeBufferArray(set, &activevals); in SCIPsolRetransform()
H A Dreader_mps.c2941 SCIP_Real* activevals; in getLinearCoeffs() local
2965 SCIP_CALL( SCIPduplicateBufferArray(scip, &activevals, vals, nactivevars ) ); in getLinearCoeffs()
2969 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in getLinearCoeffs()
2972 activevals[v] = 1.0; in getLinearCoeffs()
2978 …SCIP_CALL( SCIPgetProbvarLinearSum(scip, activevars, activevals, &nactivevars, nactivevars, &activ… in getLinearCoeffs()
2983 SCIP_CALL( SCIPreallocBufferArray(scip, &activevals, requiredsize) ); in getLinearCoeffs()
2985 …SCIP_CALL( SCIPgetProbvarLinearSum(scip, activevars, activevals, &nactivevars, requiredsize, &acti… in getLinearCoeffs()
2993 SCIP_CALL( SCIPvarGetOrigvarSum(&activevars[v], &activevals[v], &activeconstant) ); in getLinearCoeffs()
3001 activevals[v] *= -1.0; in getLinearCoeffs()
3013 matrix->values[matrix->nentries] = activevals[v]; in getLinearCoeffs()
[all …]
H A Dreader_fzn.c4128 SCIP_Real* activevals; /* coefficients in the active representation */ in printLinearCons() local
4157 SCIP_CALL( SCIPduplicateBufferArray(scip, &activevals, vals, nactivevars ) ); in printLinearCons()
4160 SCIP_CALL( SCIPallocBufferArray(scip, &activevals, nactivevars) ); in printLinearCons()
4163 activevals[v] = 1.0; in printLinearCons()
4169 …SCIP_CALL( getActiveVariables(scip, activevars, activevals, &nactivevars, &activeconstant, transfo… in printLinearCons()
4190 hasfloats = hasfloats || !SCIPisIntegral(scip, activevals[v]); in printLinearCons()
4228 …SCIP_CALL( printRow(scip, fznoutput, "eq", activevars, activevals, nactivevars, rhs - activeconsta… in printLinearCons()
4235 …SCIP_CALL( printRow(scip, fznoutput, "ge", activevars, activevals, nactivevars, lhs - activeconsta… in printLinearCons()
4241 …SCIP_CALL( printRow(scip, fznoutput, "le", activevars, activevals, nactivevars, rhs - activeconsta… in printLinearCons()
4248 SCIPfreeBufferArray(scip, &activevals); in printLinearCons()