- java.lang.Object
-
- org.ojalgo.OjAlgoUtils
-
public abstract class OjAlgoUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static VirtualMachineENVIRONMENTThis is set for you, but you may want to set it to something different/better.
-
Constructor Summary
Constructors Modifier Constructor Description privateOjAlgoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetDate()static java.lang.StringgetTitle()static java.lang.StringgetVendor()static java.lang.StringgetVersion()static voidlimitCoresTo(int maxCores)With several CPU cores present you can limit the number of threads used by ojAlgo by defining how many of the cores ojAlgo should "see".static voidlimitEnvironmentBy(double fraction)static voidlimitThreadsTo(int maxThreads)static voidlimitUnitsTo(int maxUnits)With several CPU:s present you can limit the number of threads used by ojAlgo by defining how many of the CPU:s ojAlgo should "see".static voidmain(java.lang.String[] args)static voidpushUpConcurrencyThresholds(int minValue)
-
-
-
Field Detail
-
ENVIRONMENT
public static VirtualMachine ENVIRONMENT
This is set for you, but you may want to set it to something different/better. Create a Hardware instance and then call Hardware.virtualise(). The idea is that the Hardware instance should match the actual hardware, but the VirtualMachine can optionally be limited to only let ojAlgo "see" a subset of the cores/threads. Changing this must be the very first thing you do with ojAlgo.
-
-
Method Detail
-
getDate
public static java.lang.String getDate()
- See Also:
Package.getSpecificationVersion()
-
getTitle
public static java.lang.String getTitle()
- See Also:
Package.getImplementationTitle()
-
getVendor
public static java.lang.String getVendor()
- See Also:
Package.getImplementationVendor()
-
getVersion
public static java.lang.String getVersion()
- See Also:
Package.getImplementationVersion()
-
limitCoresTo
public static void limitCoresTo(int maxCores)
With several CPU cores present you can limit the number of threads used by ojAlgo by defining how many of the cores ojAlgo should "see".- Parameters:
maxCores- The number of CPU cores available to ojAlgo
-
limitEnvironmentBy
public static void limitEnvironmentBy(double fraction)
-
limitThreadsTo
public static void limitThreadsTo(int maxThreads)
- Parameters:
maxThreads- The number of CPU threads available to ojAlgo
-
limitUnitsTo
public static void limitUnitsTo(int maxUnits)
With several CPU:s present you can limit the number of threads used by ojAlgo by defining how many of the CPU:s ojAlgo should "see".- Parameters:
maxUnits- The number of CPU:s available to ojAlgo
-
main
public static void main(java.lang.String[] args)
-
pushUpConcurrencyThresholds
public static void pushUpConcurrencyThresholds(int minValue)
-
-