Package org.ojalgo
Class OjAlgoUtils
java.lang.Object
org.ojalgo.OjAlgoUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic VirtualMachine
This is set for you, but you may want to set it to something different/better. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDate()
static String
getTitle()
static String
static String
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".static void
limitEnvironmentBy
(double fraction) static void
limitThreadsTo
(int maxThreads) 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".static void
static void
pushUpConcurrencyThresholds
(int minValue)
-
Field Details
-
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.
-
-
Constructor Details
-
OjAlgoUtils
private OjAlgoUtils()
-
-
Method Details
-
getDate
- See Also:
-
getTitle
- See Also:
-
getVendor
- See Also:
-
getVersion
- See Also:
-
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
-
pushUpConcurrencyThresholds
public static void pushUpConcurrencyThresholds(int minValue)
-