/* GeoGebra - Dynamic Mathematics for Everyone http://www.geogebra.org This file is part of GeoGebra. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. */ package org.geogebra.common.kernel.advanced; import org.geogebra.common.kernel.Construction; import org.geogebra.common.kernel.commands.Commands; import org.geogebra.common.kernel.geos.GeoNumberValue; import org.geogebra.common.kernel.geos.GeoNumeric; import org.geogebra.common.kernel.kernelND.GeoPointND; /** * AlgoMaximize Command Minimize[ <dependent variable>, <independent variable> ] * (and Minimize[] ) which searches for the independent variable which gives the * largest result for the dependent variable. * * Extends abstract class AlgoOptimize * * @author Hans-Petter Ulven * @version 20.02.2011 * */ public class AlgoMaximize extends AlgoOptimize { /** * Constructor for Maximize * * @param cons * construction * @param label * label for output * @param dep * dependent value * @param indep * independent number */ public AlgoMaximize(Construction cons, String label, GeoNumberValue dep, GeoNumeric indep) { super(cons, label, dep, new OptimizerNumeric(dep, indep), OptimizationType.MAXIMIZE); // cons.registerEuclididanViewAlgo(this); }// Constructor for Maximize public AlgoMaximize(Construction cons, String label, GeoNumberValue dep, GeoPointND indep) { super(cons, label, dep, new OptimizerPoint(dep, indep), OptimizationType.MAXIMIZE); // cons.registerEuclididanViewAlgo(this); } @Override public Commands getClassName() { return Commands.Maximize; }// getClassName() }// class AlgoMaximize