@Domain @ConfigurableInstance public class CpGenco extends Broker
| Modifier and Type | Field and Description |
|---|---|
protected BrokerProxy |
brokerProxyService |
protected RandomSeed |
seed |
| Modifier and Type | Method and Description |
|---|---|
void |
generateOrders(org.joda.time.Instant now,
List<Timeslot> openSlots)
Generates Orders in the market to sell remaining available capacity.
|
double[] |
getCoefficientArray()
Returns coefficients as a array.
|
List<String> |
getCoefficients()
Returns function coefficients as an array of Strings
|
double |
getMinQuantity()
Minimum total quantity to offer.
|
double |
getPriceInterval()
Difference between sequential nominal bid prices
|
double |
getPSigma()
Std deviation ratio for bid price.
|
double |
getQSigma()
Std deviation ratio for bid quantity.
|
double |
getRwaOffset()
Random-walk offset for the quadratic coefficient
|
double |
getRwaSigma()
Random-walk sigma for the quadratic coefficient
|
double |
getRwcOffset()
Random-walk offset for the constant coefficient
|
double |
getRwcSigma()
Random-walk sigma for the constant coefficient
|
void |
init(BrokerProxy proxy,
int seedId,
RandomSeedRepo randomSeedRepo,
TimeslotRepo timeslotRepo) |
void |
saveBootstrapState(ServerConfiguration serverConfig)
Saves coefficients for the current timeslot in the form needed for
configuration at the start of the sim session, then adds them to the
bootstrap state.
|
CpGenco |
withCoefficients(List<String> coeff)
Fluent setter for coefficient array
|
CpGenco |
withMinQuantity(double qty)
Fluent setter for minimum total quantity.
|
CpGenco |
withPriceInterval(double interval)
Fluent setter for price interval.
|
CpGenco |
withPSigma(double var)
Fluent setter for price variability.
|
CpGenco |
withQSigma(double var)
Fluent setter for price variability.
|
CpGenco |
withRwaOffset(double var)
Fluent setter for the random-walk offset value applied to the
quadratic coefficient.
|
CpGenco |
withRwaSigma(double var)
Fluent setter for the random-walk sigma value applied to the
quadratic coefficient.
|
CpGenco |
withRwcOffset(double var)
Fluent setter for the random-walk offset value applied to the
constant coefficient.
|
CpGenco |
withRwcSigma(double var)
Fluent setter for the random-walk sigma value applied to the
constant coefficient.
|
addMarketPosition, addMarketPosition, findMarketPositionByTimeslot, findMarketPositionByTimeslot, getCashBalance, getId, getIdPrefix, getKey, getPassword, getUsername, isEnabled, isLocal, isWholesale, receiveMessage, setEnabled, setIdPrefix, setKey, setLocal, setPassword, setQueueName, setWholesale, toQueueName, toString, updateCashprotected BrokerProxy brokerProxyService
protected RandomSeed seed
public CpGenco(String username)
public void init(BrokerProxy proxy, int seedId, RandomSeedRepo randomSeedRepo, TimeslotRepo timeslotRepo)
public void generateOrders(org.joda.time.Instant now,
List<Timeslot> openSlots)
public void saveBootstrapState(ServerConfiguration serverConfig)
public List<String> getCoefficients()
public double[] getCoefficientArray()
@ConfigurableValue(valueType="List", bootstrapState=true, description="Coefficients for the specified function type") @StateChange public CpGenco withCoefficients(List<String> coeff)
public double getPSigma()
@ConfigurableValue(valueType="Double", description="Standard Deviation ratio for bid price") @StateChange public CpGenco withPSigma(double var)
public double getQSigma()
@ConfigurableValue(valueType="Double", description="Standard Deviation ratio for bid quantity") @StateChange public CpGenco withQSigma(double var)
public double getRwaSigma()
@ConfigurableValue(valueType="Double", description="Random-walk std dev ratio for quadratic coefficient") @StateChange public CpGenco withRwaSigma(double var)
public double getRwaOffset()
@ConfigurableValue(valueType="Double", description="Random-walk offset ratio for quadratic coefficient") @StateChange public CpGenco withRwaOffset(double var)
public double getRwcSigma()
@ConfigurableValue(valueType="Double", description="Random-walk std dev ratio for constant coefficient") @StateChange public CpGenco withRwcSigma(double var)
public double getRwcOffset()
@ConfigurableValue(valueType="Double", description="Random-walk offset ratio for constant coefficient") @StateChange public CpGenco withRwcOffset(double var)
public double getPriceInterval()
@ConfigurableValue(valueType="Double", description="Nominal price interval between successive bids") @StateChange public CpGenco withPriceInterval(double interval)
public double getMinQuantity()
@ConfigurableValue(valueType="Double", description="minimum leadtime for first commitment, in hours") @StateChange public CpGenco withMinQuantity(double qty)
Copyright © 2017 Power TAC. All rights reserved.