Choice Modeling - Optimizer EXPERIMENTAL

From Q
Jump to navigation Jump to search
This page is currently under construction, or it refers to features which are under development and not yet available for use.
This page is under construction. Its contents are only visible to developers!

Create an optimizer (a simulator which allows multiple selection/scenarios) for a choice model in Displayr.

includeWeb('QScript Functions for Choice Modeling EXPERIMENTAL');
includeWeb("JavaScript Utilities");
// Specify number of alternatives
var k = -1;
while (!isPositiveInteger(k)) {
    k = prompt("How many alternatives would you like in your optimizer?");
if (!isPositiveInteger(k))
    alert("The number of alternatives must be an integer greater than 0.");
}
if (!createChoiceSimulator(k, true)) {
    log("Could not create choice optimizer.")            
}

See also